Skip to main content

shipment

Requires permission sales:shipment:read.

Returns one shipment by ID. A user restricted to their own customers cannot open a shipment whose order or return they cannot see. Needs the shipment read permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query Shipment($id: ID!) {
shipment(id: $id) {
id
serviceLevelCode
shipmentNumber
trackingNumber
carrierName
serviceLevelName
costSplit {
changedByName
changedAt
courierCharge
currency
customerPaid
plannedCost
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"shipment": {
"id": "id",
"serviceLevelCode": "string",
"shipmentNumber": "string",
"trackingNumber": "string",
"carrierName": "string",
"serviceLevelName": "string",
"costSplit": {
"changedByName": "string",
"changedAt": "2025-01-15T00:00:00Z",
"courierCharge": "string",
"currency": "string",
"customerPaid": "string",
"plannedCost": "string"
}
}
}
}
shipment(
id: ID!
): ShipmentGql!

Arguments​

shipment.id ● ID! non-null scalar​

The ID of the shipment.

Type​

ShipmentGql object​

A shipment as staff see it. It includes the seller's cost and is never returned to buyers.