Read stock by lot and condition
All field references · Inventory
GET /v1/inventory/positions
Your own quantities and currently released partner quantities, as exact decimal strings. Start a frozen snapshot with request_id, or continue one with snapshot_id and cursor; never send both identifiers at once. source_scope_ref stays stable across new lots; condition_ref identifies exactly one immutable condition version. Legacy is explicitly not quality-checked. A snapshot is valid for one hour and holds at most 5000 positions.
Required scopes: "inventory:read", "conditions:read".
#Parameters
#query: request_id
Optional. UUID that opens a snapshot; after a lost response, retry with it unchanged. Excludes snapshot_id.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#query: snapshot_id
Optional. Identifier of an existing snapshot; excludes request_id.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#query: cursor
Optional. 0 to start, then next_cursor unchanged. The initial request with request_id requires 0.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | Default: "0". pattern: "^(0|[1-9][0-9]{0,3})$". |
#query: limit
Optional. Positions per page; default 100.
| 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 | Key environment: live for real operations or test for the endpoint's documented test behavior. enum: ["live","test"]. |
| data.snapshot_id | string | Required when parent is present | Not allowed | Identifier of the frozen stock snapshot; retain it for all subsequent pages. format: "uuid". |
| data.observed_at | string | Required when parent is present | Not allowed | Observed at, with time-zone offset. format: "date-time". |
| data.expires_at | string | Required when parent is present | Not allowed | Time after which this snapshot or token can no longer be used. format: "date-time". |
| data.positions | array | Required when parent is present | Not allowed | Inventory or billing positions returned by this authorized operation. maxItems: 250. |
| data.positions[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.positions[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.positions[].inventory_id | string | Required when parent is present | Not allowed | Identifier of the aggregate inventory record to which this position belongs. format: "uuid". |
| data.positions[].source_scope_ref | string | Required when parent is present | Not allowed | Stable inventory source reference shared by positions from the same source, including across lots. format: "uuid". |
| data.positions[].article_id | string | Required when parent is present | Not allowed | Meykt article identifier from the article catalog. format: "uuid". |
| data.positions[].sku | string or null | Required when parent is present | Allowed by schema | Article SKU used to identify the corresponding goods. |
| data.positions[].name | string | Required when parent is present | Not allowed | Display name. |
| data.positions[].unit | string | Required when parent is present | Not allowed | Exact offered unit; no implicit carton, weight or dimension conversion. const: "piece". |
| data.positions[].operator | object | Required when parent is present | Not allowed | Authorized operator holding these goods; origin distinguishes own warehouses from a fulfillment partner. Additional properties are not allowed. |
| data.positions[].operator.ref | string | Required when parent is present | Not allowed | Opaque reference returned for the selected owner, operator, warehouse or stock source. format: "uuid". |
| data.positions[].operator.name | string | Required when parent is present | Not allowed | Display name. |
| data.positions[].operator.origin | string | Required when parent is present | Not allowed | Source category of this stock or component entry. enum: ["own","partner"]. |
| data.positions[].warehouse | object | Required when parent is present | Not allowed | Authorized warehouse containing this stock position. Additional properties are not allowed. |
| data.positions[].warehouse.ref | string | Required when parent is present | Not allowed | Opaque reference returned for the selected owner, operator, warehouse or stock source. format: "uuid". |
| data.positions[].warehouse.name | string | Required when parent is present | Not allowed | Display name. |
| data.positions[].lot_ref | string | Required when parent is present | Not allowed | Opaque reference to the lot or receipt represented by this stock position. format: "uuid". |
| data.positions[].condition_ref | string | Required when parent is present | Not allowed | Stable condition reference. Existing references remain unchanged when unclassified stock is presented as Standard. format: "uuid". |
| data.positions[].expires_on | alternative (anyOf) | Optional | Allowed by schema | Actual best-before date of this receipt; null or absent means unknown, never a safety release. |
| data.positions[].expires_on | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Actual best-before date of this receipt; null or absent means unknown, never a safety release. format: "date". |
| data.positions[].expires_on | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Actual best-before date of this receipt; null or absent means unknown, never a safety release. |
| data.positions[].condition | object | Required when parent is present | Not allowed | Condition classification of this inventory position. Current ordinary stock is Standard; historical frozen snapshots can retain the legacy marker with null classification fields. Additional properties are not allowed. |
| data.positions[].condition.legacy | boolean | Required when parent is present | Not allowed | Historical unclassified marker retained in frozen snapshots. Current ordinary stock is presented as Standard; neither marker certifies new or inspected quality. |
| data.positions[].condition.code | string or null | Required when parent is present | Allowed by schema | Code of this condition, record or business result. |
| data.positions[].condition.quality_grade | string or null | Required when parent is present | Allowed by schema | Optional quality grade assigned to this stock condition. |
| data.positions[].condition.disposition | alternative (anyOf) | Required when parent is present | Allowed by schema | Listed disposition; follow-up depends on the current case and rights. |
| data.positions[].condition.disposition | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Listed disposition; follow-up depends on the current case and rights. enum: ["quarantine","released","blocked"]. |
| data.positions[].condition.disposition | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Listed disposition; follow-up depends on the current case and rights. |
| data.positions[].condition.catalog_version | alternative (anyOf) | Required when parent is present | Allowed by schema | Version of the selected stock-condition catalog entry. |
| data.positions[].condition.catalog_version | integer | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Version of the selected stock-condition catalog entry. exclusiveMinimum: 0. |
| data.positions[].condition.catalog_version | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Version of the selected stock-condition catalog entry. |
| data.positions[].physical | string | Required when parent is present | Not allowed | Physically recorded stock quantity, excluding expected deliveries. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.positions[].reserved | string | Required when parent is present | Not allowed | Physical quantity already committed to existing reservations. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.positions[].exclusive_held | string | Required when parent is present | Not allowed | Physical quantity exclusively held outside ordinary reservations, including cover for a shop sales quota. This quantity is already deducted from available; expected deliveries are excluded. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.positions[].available | string | Required when parent is present | Not allowed | Unreserved physical quantity after exclusive holds and storage restrictions. Do not subtract exclusive_held again. Expected deliveries are excluded. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.positions[].certified_available | string | Required when parent is present | Not allowed | Available physical quantity eligible for regular sale. Includes Standard; excludes Used and Personalized. The historical field name is not an inspection certificate. maxLength: 40. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.positions[].allocation_eligible | boolean | Required when parent is present | Not allowed | Whether this condition permits allocation of its physical quantity. |
| data.positions[].certified_sale_eligible | boolean | Required when parent is present | Not allowed | Whether the stock is eligible for regular sale, independently of allocation_eligible. Standard qualifies; Used and Personalized can be allocated but do not qualify. No quality certification is implied. |
| data.next_cursor | alternative (anyOf) | Required when parent is present | Allowed by schema | Cursor to send unchanged for the next page; null means the end of this list. |
| data.next_cursor | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Cursor to send unchanged for the next page; null means the end of this list. pattern: "^[1-9]\\d{0,3}$". |
| data.next_cursor | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Cursor to send unchanged for the next page; null means the end of this list. |
| data.has_more | boolean | Required when parent is present | Not allowed | Whether more entries remain after this page. |
#Response 401, 403, 404, 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. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 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-positions.md