Shipment type
A carrier shipment of a consignment, as the carrier accepted it.
Fields
id
The shipment's MAX id.
number
String!
The shipment's own number in MAX, for example ZAS-2026-00001.
status
The shipment's status at the carrier.
numbers
[String!]
The carrier's shipping numbers (tracking numbers), in the carrier's order. Empty when the
carrier returned no usable number. Numbers never arrive later: a CREATED shipment already
has every number it will have.
A number finds the recipient's address at the carrier, so it has the access rules of the customer's data:
- Requires the
partner.readpermission and the shipment's customer in your API key's partner scope. Without them, null withFORBIDDEN_ROLEorFORBIDDEN_SCOPEat this path. The rest of the shipment is returned. - A shipment without a customer returns
FORBIDDEN_SCOPEto an API key that is limited to certain partners. - Null, without an error, once the customer is erased.
Priced as 2 numbers, however many it holds.
Costs 2 points.
trackingStatus
String!
The carrier's tracking state, as the events feed carries it: PENDING, LABEL_CREATED,
IN_TRANSIT, OUT_FOR_DELIVERY, READY_FOR_PICKUP, DELIVERED, RETURNED, FAILED or
UNKNOWN. More codes may be added.
carrier
The carrier route the shipment was sent with. Its names come from the carrier catalogue. For a route that the catalogue no longer holds, the codes stand in for the names.
salesOrderId
The MAX id of the sales order the shipment ships. It is only an id, and it may name an order that your API key cannot read.
fulfilmentId
The MAX id of the consignment the shipment ships. It is only an id.
version
Int
The shipment's last event version, as in the events feed. Null when the shipment has published no event, or when this read and the last event disagree because a newer event is being published.
createdAt
When the shipment was created in MAX.
changedAt
When the shipment's last event was published. Null exactly when version is null.
Used by
shipment(query)ShipmentConnectionShipmentEdge