Read source quantities, partial shipments and actual package contents
GET /v1/orders/{id}/dispatches
Your own API source order, including fulfilled partial quantities from earlier partner generations. complete means everything has shipped; closed means shipped or explicitly canceled. A component shipment counts as a fulfilled set only once its quantity record is complete.
Required scopes: "orders:read".
#Parameters
#path: id
Required. Your own API source order.
| 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.order_id | string | Required when parent is present | Not allowed | Meykt order ID from authorized reads; not order number/external reference. format: "uuid". |
| 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.revision | string | Required when parent is present | Not allowed | Revision token; reuse unchanged for the next change. pattern: "^[0-9a-f]{64}$". |
| data.observed_at | string | Required when parent is present | Not allowed | Observed at, with time-zone offset. format: "date-time". |
| data.complete | boolean | Required when parent is present | Not allowed | Every ordered unit has a confirmed warehouse dispatch. Cancelled units do not count. A packing-station dispatch does not prove carrier handover or delivery. |
| data.closed | boolean | Required when parent is present | Not allowed | Every ordered unit is either dispatched on its recorded basis or explicitly cancelled. |
| data.lines | array | Required when parent is present | Not allowed | All selected lines; each must satisfy this action’s quantity/identity rules. maxItems: 200. |
| data.lines[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.lines[].order_item_id | string | Required when parent is present | Not allowed | Line identifier from the current order read. format: "uuid". |
| data.lines[].ordered | string | Required when parent is present | Not allowed | Original ordered quantity for this line. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.lines[].allocated | string | Required when parent is present | Not allowed | Quantity assigned to active dispatch sections. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.lines[].shipped | string | Required when parent is present | Not allowed | Quantity whose physical shipment has been confirmed. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.lines[].cancelled | string | Required when parent is present | Not allowed | Quantity explicitly cancelled, excluding shipped or physically received quantities. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.lines[].remaining | string | Required when parent is present | Not allowed | Ordered quantity not yet shipped or cancelled, including quantity already allocated to dispatch sections. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.lines[].unallocated | string | Required when parent is present | Not allowed | Unfulfilled quantity without an active physical or expected-stock claim. Only this quantity can be cancelled immediately. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.shipments | array | Required when parent is present | Not allowed | Documented physical shipments and their exact line and package contents. maxItems: 250. |
| data.shipments[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.shipments[].shipped_at | string | Required when parent is present | Not allowed | Time the physical shipment was confirmed. format: "date-time". |
| data.shipments[].dispatch_basis | string | Optional | Not allowed | pack_station_dispatch confirms completion at the packing station; carrier_handover retains the historical handover meaning. Neither proves delivery. Missing in historical responses means unknown. enum: ["carrier_handover","pack_station_dispatch"]. |
| data.shipments[].lines | array | Required when parent is present | Not allowed | All selected lines; each must satisfy this action’s quantity/identity rules. maxItems: 200. |
| data.shipments[].lines[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].lines[].order_item_id | string | Required when parent is present | Not allowed | Line identifier from the current order read. format: "uuid". |
| data.shipments[].lines[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.shipments[].lines[].components | array | Optional | Not allowed | Component quantities/choices for this set, manufacturing or dispatch line. maxItems: 250. |
| data.shipments[].lines[].components[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].lines[].components[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.shipments[].lines[].components[].component_ref | string | Required when parent is present | Not allowed | Stable reference to the component of the order's saved product structure. format: "uuid". |
| data.shipments[].lines[].components[].name | string | Required when parent is present | Not allowed | Display name. |
| data.shipments[].lines[].components[].sku | string or null | Required when parent is present | Allowed by schema | Article SKU used to identify the corresponding goods. |
| data.shipments[].lines[].components[].article_id | string | Required when parent is present | Not allowed | Meykt article identifier from the article catalog. format: "uuid". |
| data.shipments[].lines[].components[].variant_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Native Meykt variant ID; null = main article where allowed. |
| data.shipments[].lines[].components[].variant_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. format: "uuid". |
| data.shipments[].lines[].components[].variant_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. |
| data.shipments[].lines[].components[].unit | string | Required when parent is present | Not allowed | Exact offered unit; no implicit carton, weight or dimension conversion. const: "piece". |
| data.shipments[].lines[].components[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.shipments[].packages | array | Required when parent is present | Not allowed | Physical packages with explicit package numbers and their exact contents. maxItems: 100. |
| data.shipments[].packages[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].packages[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.shipments[].packages[].number | integer | Required when parent is present | Not allowed | Sequence number of this package within the shipment, starting at 1. exclusiveMinimum: 0. maximum: 100. |
| data.shipments[].packages[].contents_known | boolean | Required when parent is present | Not allowed | Whether exact package contents are known; false means no exact contents can be inferred. |
| data.shipments[].packages[].contents | array | Required when parent is present | Not allowed | Exact quantities assigned to this package, referencing the dispatch section lines or components. maxItems: 250. |
| data.shipments[].packages[].contents[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].packages[].contents[].order_item_id | string | Required when parent is present | Not allowed | Line identifier from the current order read. format: "uuid". |
| data.shipments[].packages[].contents[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.shipments[].packages[].contents[].component_id | string | Optional | Not allowed | Component identifier within this order, shipment or dispatch section. format: "uuid". |
| data.shipments[].packages[].contents[].component_ref | string | Optional | Not allowed | Stable reference to the component of the order's saved product structure. format: "uuid". |
| data.shipments[].packages[].contents[].workpiece_codes | array | Optional | Not allowed | Exact issued workpiece codes recorded in this package. Absent for quantity-only goods and historical manifests. No identities are inferred from a product or quantity. minItems: 1. maxItems: 10000. |
| data.shipments[].packages[].contents[].workpiece_codes[] | string | Every array item | Not allowed | pattern: "^MK-PIECE-[A-F0-9]{32}$". |
| data.shipments[].packages[].contents[].name | string | Optional | Not allowed | Display name. |
| data.shipments[].packages[].contents[].sku | string or null | Optional | Allowed by schema | Article SKU used to identify the corresponding goods. |
| data.shipments[].packages[].contents[].article_id | string | Optional | Not allowed | Meykt article identifier from the article catalog. format: "uuid". |
| data.shipments[].packages[].contents[].variant_id | alternative (anyOf) | Optional | Allowed by schema | Native Meykt variant ID; null = main article where allowed. |
| data.shipments[].packages[].contents[].variant_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. format: "uuid". |
| data.shipments[].packages[].contents[].variant_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Native Meykt variant ID; null = main article where allowed. |
| data.shipments[].packages[].contents[].unit | string | Optional | Not allowed | Exact offered unit; no implicit carton, weight or dimension conversion. const: "piece". |
| data.shipments[].packages[].tracking | array | Required when parent is present | Not allowed | Currently recorded tracking entries for this package; replaced manual entries are omitted. Several entries are current together. A newer recorded_at does not replace another entry. maxItems: 100. |
| data.shipments[].packages[].tracking[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].packages[].tracking[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.shipments[].packages[].tracking[].carrier | string | Required when parent is present | Not allowed | Carrier name or code associated with the tracking number. |
| data.shipments[].packages[].tracking[].number | string | Required when parent is present | Not allowed | Tracking identifier issued by the carrier. Keep its original spelling. |
| data.shipments[].packages[].tracking[].recorded_at | string | Required when parent is present | Not allowed | Time this tracking or business record was saved. format: "date-time". |
| data.closure | object | Required when parent is present | Not allowed | Current order-closure state and any required next action. Additional properties are not allowed. |
| data.closure.state | string | Required when parent is present | Not allowed | Operation state; processing/decision states do not prove completion. enum: ["open","closed","review_required"]. |
| data.closure.next_action | alternative (anyOf) | Required when parent is present | Allowed by schema | Next permitted step suggested by the current operation state. |
| data.closure.next_action | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Next permitted step suggested by the current operation state. const: "review_order_closure". |
| data.closure.next_action | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Next permitted step suggested by the current operation state. |
| data.pending_cancellations | array | Required when parent is present | Not allowed | Quantity-cancellation requests still awaiting a partner decision. maxItems: 250. |
| data.pending_cancellations[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.pending_cancellations[].id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.pending_cancellations[].state | string | Required when parent is present | Not allowed | Operation state; processing/decision states do not prove completion. const: "decision_required". |
| data.pending_cancellations[].lines | array | Required when parent is present | Not allowed | All selected lines; each must satisfy this action’s quantity/identity rules. maxItems: 200. |
| data.pending_cancellations[].lines[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.pending_cancellations[].lines[].order_item_id | string | Required when parent is present | Not allowed | Line identifier from the current order read. format: "uuid". |
| data.pending_cancellations[].lines[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. maxLength: 24. pattern: "^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$". |
| data.pending_cancellations[].reason | string | Required when parent is present | Not allowed | Recorded reason. |
| data.pending_cancellations[].created_at | string | Required when parent is present | Not allowed | Created at, with time-zone offset. format: "date-time". |
#Response 401, 403, 404, 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". 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-get-source-dispatches.md