# Sync your own stock and assigned fulfillment stock

[All field references](/en/developers/field-reference) · [Inventory](/en/developers/fields-group-inventory)

`GET /v1/inventory`

Start or rebuild with cursor=0, including after history cleanup. Apply all pages by inventory_id to a separate empty view before replacing existing stock. Continue with next_cursor unchanged and follow has_more immediately. Frozen snapshots remain available through POST /v1/inventory/snapshots. Cursors belong to this connection; withdrawn access produces removed=true. Quantities and revisions are decimal strings. Test keys return an empty test stream. No stock is booked.

Required scopes: `"inventory:read"`.

[How to read these tables](/en/developers/field-reference#reading-the-field-tables)

## Parameters

### query: cursor

Optional. Use next_cursor unchanged for this connection. Default 0 rebuilds all current stock, even after retention. Build into an empty local view.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | string | Whole value | Not allowed | Use next_cursor unchanged for this connection. Default 0 rebuilds all current stock, even after retention. Build into an empty local view. Default: `"0"`. maxLength: `80`. pattern: `"^(0\|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(0\|[1-9]\\d{0,18})(:(0\|[1-9]\\d{0,18}))?)$"`. |

### query: limit

Optional. 1 to 250 changes per page.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | integer | Whole value | Not allowed | Default: `100`. minimum: `1`. maximum: `250`. |

## 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 returns an empty test stream and never reads live stock. enum: `["live","test"]`. |
| data.observed_at | string | Required when parent is present | Not allowed | Observed at, with time-zone offset. format: `"date-time"`. |
| data.revision | string | Required when parent is present | Not allowed | Inventory revision as an exact integer string; retain unchanged for synchronization. pattern: `"^(0\|[1-9]\\d{0,18})$"`. |
| data.next_cursor | string | Optional | Not allowed | Continue this connection’s retained change history with this cursor, unchanged, after applying the whole page. has_more indicates whether this bounded range has more pages. Default: `"0"`. maxLength: `80`. pattern: `"^(0\|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:(0\|[1-9]\\d{0,18})(:(0\|[1-9]\\d{0,18}))?)$"`. |
| data.has_more | boolean | Required when parent is present | Not allowed | More pages remain in this bounded change range. Save next_cursor only after applying every change on the page. |
| data.changes | array | Required when parent is present | Not allowed | Inventory changes since the supplied revision or cursor. maxItems: `250`. |
| data.changes[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.changes[].revision | string | Required when parent is present | Not allowed | Inventory revision as an exact integer string; retain unchanged for synchronization. pattern: `"^(0\|[1-9]\\d{0,18})$"`. |
| data.changes[].inventory_id | string | Required when parent is present | Not allowed | Identifier of the aggregate inventory record to which this position belongs. format: `"uuid"`. |
| data.changes[].removed | boolean | Required when parent is present | Not allowed | Remove this entry from your local view. Access may have ended; this does not prove physical destruction of goods. |
| data.changes[].inventory | alternative (anyOf) | Required when parent is present | Allowed by schema | Replace the entire local entry identified by inventory_id. Null accompanies removed=true. |
| data.changes[].inventory | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Replace the entire local entry identified by inventory_id. Null accompanies removed=true. Additional properties are not allowed. |
| data.changes[].inventory.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: `"uuid"`. |
| data.changes[].inventory.article_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Meykt article identifier from the article catalog. format: `"uuid"`. |
| data.changes[].inventory.external_article_ids | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. External article identifiers explicitly linked through this connection. maxItems: `1000`. |
| data.changes[].inventory.external_article_ids[] | string | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. |
| data.changes[].inventory.sku | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Article SKU used to identify the corresponding goods. |
| data.changes[].inventory.name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.changes[].inventory.warehouse | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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.changes[].inventory.warehouse.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: `"uuid"`. |
| data.changes[].inventory.warehouse.name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.changes[].inventory.warehouse.origin | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Source category of this stock or component entry. enum: `["own","partner"]`. |
| data.changes[].inventory.unit | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Base unit used by all three quantities. Quantities are exact decimal strings with at most six decimal places. |
| data.changes[].inventory.physical | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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.changes[].inventory.reserved | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Part of physical already reserved for work; it is not additional stock. maxLength: `40`. pattern: `"^(0\|[1-9]\\d*)(\\.\\d{1,6})?$"`. |
| data.changes[].inventory.available | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. 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})?$"`. |
| data.changes[].inventory | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Replace the entire local entry identified by inventory_id. Null accompanies removed=true. |

## 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"`. |
