Read current stock per article and warehouse
All field references · Inventory
GET /v1/inventory/levels
Returns every authorized article/warehouse entry once, calculated together at observed_at, in a single response without paging or cursor. Replace your local stock with this list; quantities are absolute, not movements. One SKU appears once per warehouse; do not add available values across warehouses to form a product total. A missing article is not confirmed zero stock. Uses the same calculation as the change feed and snapshots; it books nothing and records no change history. For frequent incremental sync use snapshots and changes. Test keys return an empty list.
Required scopes: "inventory:read".
#Parameters
#query: sku
Optional. Exact Meykt SKU (case-sensitive). Omit to read all entries. An unknown SKU returns an empty list, not confirmed zero stock.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | minLength: 1. maxLength: 255. |
#query: external_article_id
Optional. Exact article reference linked through this API connection (external_article_ids). Omit to read all entries.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | minLength: 1. maxLength: 255. |
#query: warehouse_id
Optional. Opaque warehouse.id from an earlier response. Omit to read all warehouses.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#Request body
No request body is defined for this operation.
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.environment | string | Required when parent is present | Not allowed | Test keys return an empty list and never read live stock. enum: ["live","test"]. |
| data.observed_at | string | Required when parent is present | Not allowed | When all entries in this response were calculated together, with time-zone offset. format: "date-time". |
| data.item_count | integer | Required when parent is present | Not allowed | Number of entries in items. minimum: 0. maximum: 5000. |
| data.max_items | number | Required when parent is present | Not allowed | Maximum number of article/warehouse entries one connection can read. Larger inventories fail visibly instead of being truncated. const: 5000. |
| data.items | array | Required when parent is present | Not allowed | Exactly one current state per inventory_id (article and warehouse), sorted by id. Quantities are absolute values, not movements to add. Several entries can share a SKU when it is stored in several warehouses; do not add their available values to form a product total. maxItems: 5000. |
| data.items[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.items[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.items[].article_id | string | Required when parent is present | Not allowed | Meykt article identifier from the article catalog. format: "uuid". |
| data.items[].external_article_ids | array | Required when parent is present | Not allowed | External article identifiers explicitly linked through this connection. maxItems: 1000. |
| data.items[].external_article_ids[] | string | Every array item | Not allowed | — |
| data.items[].sku | string or null | Required when parent is present | Allowed by schema | Article SKU used to identify the corresponding goods. |
| data.items[].name | string | Required when parent is present | Not allowed | Display name. |
| data.items[].warehouse | object | Required when parent is present | Not allowed | Only your own goods are visible, in your warehouses or at an active fulfillment partner with current product access. This is not the partner’s entire inventory. Additional properties are not allowed. |
| data.items[].warehouse.id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.items[].warehouse.name | string | Required when parent is present | Not allowed | Display name. |
| data.items[].warehouse.origin | string | Required when parent is present | Not allowed | Source category of this stock or component entry. enum: ["own","partner"]. |
| data.items[].unit | string | Required when parent is present | Not allowed | Base unit used by all three quantities. Quantities are exact decimal strings with at most six decimal places. |
| data.items[].physical | string | Required when parent is present | Not allowed | Recorded physical quantity, including reserved goods and goods currently unavailable for picking. Expected deliveries are excluded. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.items[].reserved | string | Required when parent is present | Not allowed | Part of physical already reserved for work; it is not additional stock. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.items[].available | string | Required when parent is present | Not allowed | Unreserved quantity in accessible, unblocked storage, after temporary holds and exclusive claims, including physical cover held for a shop sales quota. May be lower than physical minus reserved. Expected deliveries are excluded; this is not a shop sales promise or a condition-specific quantity. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
#Response 401, 403, 409, 422, 429, 500, 503
401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 409: The same ID already exists with different content. It is never overwritten. 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: "uri". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-read-inventory-levels.md