Retrieve shipments, quantities and package tracking
GET /v1/orders/{id}/shipments
Returns the shipments of this order you are permitted to see, with item quantities and packages. Use this endpoint for tracking: it lists every shipment dispatched through a Meykt warehouse, yours or a fulfillment partner's. A shipment or handover reported as a completion (outside the Meykt warehouse, by you or a fulfiller) appears under GET /orders/{id}/completion instead; that endpoint returns completion=null for warehouse shipments. complete is only true when every source item has been shipped in full; it means neither that the list query is complete nor that the recipient received the delivery. Package contents are not assigned per item. tracking lists every current tracking number of a package, regardless of its origin: DHL labels issued in Meykt and not cancelled, numbers entered for labels printed outside Meykt, and numbers recorded on dispatch sections. carrier is a fixed code (dhl, deutsche_post, dpd, gls, hermes, ups, fedex, or other for a carrier recorded by name only) and carrier_name is the display name. tracking_url links to the carrier's public tracking page for DHL, Deutsche Post, DPD, GLS, UPS and Hermes and is null otherwise. A shipment without any known number is still listed with an empty tracking list.
Required scopes: "orders:read".
#Parameters
#path: id
Required. Meykt ID of an order of this API channel and this environment.
| 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.shipments | array | Required when parent is present | Not allowed | Documented physical shipments and their exact line and package contents. maxItems: 100. |
| 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 is the confirmed warehouse dispatch at packing completion; carrier_handover is the historical handover proof. 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. minItems: 1. maxItems: 250. |
| 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[].external_line_id | string or null | Required when parent is present | Allowed by schema | Stable line identifier supplied by the originating system. |
| data.shipments[].lines[].quantity | string | Required when parent is present | Not allowed | Exact decimal-string quantity in the stated unit; no floats. pattern: "^(0|[1-9]\\d*)(\\.\\d{1,6})?$". |
| data.shipments[].packages | array | Required when parent is present | Not allowed | All packages of this shipment. Current final manifests provide exact package contents. Missing contents fields or contents_known=false mean historical contents are unknown; never infer them from shipment totals or package counts. minItems: 1. 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. minimum: 1. maximum: 100. |
| data.shipments[].packages[].contents_known | boolean | Optional | Not allowed | Whether exact package contents are known; false means no exact contents can be inferred. |
| data.shipments[].packages[].contents | array | Optional | 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 | Every current tracking number of this package, regardless of its origin: DHL labels issued in Meykt and not cancelled, numbers entered in Meykt for labels printed elsewhere, and numbers recorded on dispatch sections. Replaced numbers are omitted. Empty when no tracking number is known; buying a label alone is not shipment. maxItems: 30. |
| data.shipments[].packages[].tracking[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.shipments[].packages[].tracking[].carrier | string | Required when parent is present | Not allowed | Fixed carrier code: dhl, deutsche_post, dpd, gls, hermes, ups or fedex. other means a carrier recorded by name only; read carrier_name for it. More codes may be added; treat an unknown code like other. enum: ["dhl","deutsche_post","dpd","gls","hermes","ups","fedex","other"]. |
| data.shipments[].packages[].tracking[].carrier_name | string | Required when parent is present | Not allowed | Carrier name for display, for example DHL or DPD. For carrier other it is the name exactly as recorded in Meykt. minLength: 1. maxLength: 80. |
| 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[].tracking_url | alternative (anyOf) | Required when parent is present | Allowed by schema | Public tracking page of the carrier for this number, in the organization's default language. Built by Meykt from carrier and number for DHL (including Deutsche Post), DPD, GLS, UPS and Hermes. null for other carriers or numbers in an unusual format; then show the number or build your own link. Not taken from shipping or shop settings. |
| data.shipments[].packages[].tracking[].tracking_url | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Public tracking page of the carrier for this number, in the organization's default language. Built by Meykt from carrier and number for DHL (including Deutsche Post), DPD, GLS, UPS and Hermes. null for other carriers or numbers in an unusual format; then show the number or build your own link. Not taken from shipping or shop settings. format: "uri". maxLength: 500. |
| data.shipments[].packages[].tracking[].tracking_url | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Public tracking page of the carrier for this number, in the organization's default language. Built by Meykt from carrier and number for DHL (including Deutsche Post), DPD, GLS, UPS and Hermes. null for other carriers or numbers in an unusual format; then show the number or build your own link. Not taken from shipping or shop settings. |
| data.complete | boolean | Required when parent is present | Not allowed | True only when the order has at least one item and the proved shipped quantity equals the ordered quantity for every source item. This describes fulfillment of the order, not completeness of a paginated list. |
| data.observed_at | string | Required when parent is present | Not allowed | Observed at, with time-zone offset. format: "date-time". |
#Response 401, 403, 404, 409, 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. 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-order-shipments.md