# Shipment type


A carrier shipment of a consignment, as the carrier accepted it.

## Fields

### id

[`UUID!`](/chameleoon-max/type/uuid)

The shipment's MAX id.

### number

`String!`

The shipment's own number in MAX, for example `ZAS-2026-00001`.

### status

[`ShipmentStatus!`](/chameleoon-max/type/shipment-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.read` permission and the shipment's customer in your API key's
  partner scope. Without them, null with `FORBIDDEN_ROLE` or `FORBIDDEN_SCOPE` at this path.
  The rest of the shipment is returned.
- A shipment without a customer returns `FORBIDDEN_SCOPE` to 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

[`CarrierProfile!`](/chameleoon-max/type/carrier-profile)

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

[`UUID`](/chameleoon-max/type/uuid)

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

[`UUID`](/chameleoon-max/type/uuid)

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

[`Time!`](/chameleoon-max/type/time)

When the shipment was created in MAX.

### changedAt

[`Time`](/chameleoon-max/type/time)

When the shipment's last event was published. Null exactly when `version` is null.

## Used by

- [`shipment`](/chameleoon-max/query/shipment) (query)
- [`ShipmentConnection`](/chameleoon-max/type/shipment-connection)
- [`ShipmentEdge`](/chameleoon-max/type/shipment-edge)
