> For the complete documentation index, see [llms.txt](https://dev.skladon.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.skladon.com/main/v2/integration/api/products-availability.md).

# Products availability

You may find descriptions of endpoints for requesting products availability below.

## GET /products/availability

> Get availability for all products

```json
{"openapi":"3.1.1","info":{"title":"Public Gateway Documentation","version":"2.0.0"},"servers":[{"url":"https://gw.new.skladon.net/v2"}],"security":[{"authorization":[],"XApiKey":[]}],"components":{"securitySchemes":{"authorization":{"type":"apiKey","name":"authorization","in":"header"}},"schemas":{"ProductAvailabilityResponse":{"type":"object","description":"Products availability response","properties":{"statusCode":{"type":"number","default":200},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ProductAvailabilityResponseData"}},"required":["statusCode","message"]},"ProductAvailabilityResponseData":{"type":"array","items":{"description":"List of stock items for given product. Send only if query parameter sendItems is set to true.","$ref":"#/components/schemas/ProductAvailabilityItem"}},"ProductAvailabilityItem":{"type":"object","properties":{"sku":{"type":"string"},"available":{"type":"number"},"all":{"type":"number"},"onHoldQuantity":{"type":"number"},"onExpedition":{"type":"number"},"awaiting":{"type":"number"},"error":{"type":"string","description":"if error occurred and is set, availability counts will be null values. otherwise error is null"}}},"ErrorMessageResponse":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}},"paths":{"/products/availability":{"get":{"summary":"Get availability for all products","operationId":"getProductsAvailability","parameters":[{"schema":{"type":"string"},"description":"This is the eshop key you receive during onboarding.","name":"x-api-key","in":"header","required":true},{"schema":{"type":"boolean"},"name":"sendItems","in":"query","description":"If this parameter is set to true, the response will include additional data in the items section for each product, such as expiration date, LOT, and other relevant details.","required":false},{"schema":{"type":"string"},"description":"Token you get from calling /users/login","name":"authorization","in":"header","required":true}],"tags":["Products"],"responses":{"200":{"description":"Success response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAvailabilityResponse"}}}},"401":{"description":"Unauthorized response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessageResponse"}}}}}}}}}
```

## POST /products/availability

> Get availability for given skus

```json
{"openapi":"3.1.1","info":{"title":"Public Gateway Documentation","version":"2.0.0"},"servers":[{"url":"https://gw.new.skladon.net/v2"}],"security":[{"authorization":[],"XApiKey":[]}],"components":{"securitySchemes":{"authorization":{"type":"apiKey","name":"authorization","in":"header"}},"schemas":{"ProductAvailabilityResponse":{"type":"object","description":"Products availability response","properties":{"statusCode":{"type":"number","default":200},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ProductAvailabilityResponseData"}},"required":["statusCode","message"]},"ProductAvailabilityResponseData":{"type":"array","items":{"description":"List of stock items for given product. Send only if query parameter sendItems is set to true.","$ref":"#/components/schemas/ProductAvailabilityItem"}},"ProductAvailabilityItem":{"type":"object","properties":{"sku":{"type":"string"},"available":{"type":"number"},"all":{"type":"number"},"onHoldQuantity":{"type":"number"},"onExpedition":{"type":"number"},"awaiting":{"type":"number"},"error":{"type":"string","description":"if error occurred and is set, availability counts will be null values. otherwise error is null"}}},"ErrorMessageResponse":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]},"ProductAvailabilitySkus":{"type":"object","properties":{"skus":{"$ref":"#/components/schemas/skus"}},"required":["skus"]},"skus":{"type":"array","minItems":1,"items":{"type":"string"}}}},"paths":{"/products/availability":{"post":{"summary":"Get availability for given skus","operationId":"postProductsAvailability","parameters":[{"schema":{"type":"string"},"description":"This is the eshop key you receive during onboarding.","name":"x-api-key","in":"header","required":true},{"schema":{"type":"string"},"description":"Token you get from calling /users/login","name":"authorization","in":"header","required":true},{"schema":{"type":"boolean"},"name":"sendItems","in":"query","description":"If this parameter is set to true, the response will include additional data in the items section for each product, such as expiration date, LOT, and other relevant details.","required":false}],"tags":["Products"],"responses":{"200":{"description":"Success response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAvailabilityResponse"}}}},"401":{"description":"Unauthorized response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessageResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAvailabilitySkus"}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dev.skladon.com/main/v2/integration/api/products-availability.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
