# Fulfilment type


What one warehouse sends of a sales order.

## Fields

### id

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

The fulfilment's MAX id.

### number

`String`

The fulfilment's number in MAX, for example `DL-2026-00398`. Null until MAX gives it one:
when picking starts or when it ships.

### status

[`FulfilmentStatus!`](/chameleoon-max/type/fulfilment-status)

The fulfilment's status.

### salesOrderId

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

The MAX id of the fulfilment's sales order.

### warehouseId

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

The MAX id of the warehouse the goods leave.

### warehouse

[`Warehouse`](/chameleoon-max/type/warehouse)

The warehouse the goods leave.

- Requires the `warehouse.read` permission. Without it, the field is null with a
  `FORBIDDEN_ROLE` error at its path (`extensions.permission`).
- In that case the rest of the response is returned.

### carrier

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

The carrier route the fulfilment ships with. Null when it names none. For a route that the
catalogue does not hold, the codes stand in for the names.

### shippedAt

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

When the fulfilment shipped. Null until it does.

### parcels

[`[FulfilmentParcel!]`](/chameleoon-max/type/fulfilment-parcel)

The boxes, with their tracking numbers, in order. Empty when the fulfilment has no box yet or
shipped without a known number.

A tracking 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 order'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 fulfilment is returned.
- Null, without an error, once the customer is erased.

Priced as 2 parcels, however many it holds.

Costs 2 points plus 2 × one parcel's selection.

### lines

[`FulfilmentLineConnection`](/chameleoon-max/type/fulfilment-line-connection)

Arguments:

- `first`: `Int`
- `after`: `String`
- `last`: `Int`
- `before`: `String`

The fulfilment's lines: what of each order item it sends, in the order they were added. A line
an order edit cut to zero is left out.

A connection, paged with `first`/`after` or `last`/`before`, at most 250 a page. For the next
page, send the same query with `after` set to `pageInfo.endCursor`, while
`pageInfo.hasNextPage` is true. A cursor is only valid for the fulfilment it came from.

Null, with an error at its path, when its page cannot be read, for example because of a cursor
of another parent. The rest of the response is returned.

A page costs 2 + first (or last) × the cost of one node.

### createdAt

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

When the fulfilment was created in MAX.

## Used by

- [`fulfilment`](/chameleoon-max/query/fulfilment) (query)
- [`FulfilmentConnection`](/chameleoon-max/type/fulfilment-connection)
- [`FulfilmentEdge`](/chameleoon-max/type/fulfilment-edge)
- [`ShipFulfilmentResult`](/chameleoon-max/type/ship-fulfilment-result)
