Admin API / Mutations

splitShipment

Moves 1 to 100 PAID orders of one NOT_STARTED shipment to a new shipment with the same addresses, parcel, insurance, hazardous-material flag, status and bundling window. At least one order stays. All or nothing: a failed rule changes nothing. OrderNotFoundError lists the IDs that match no order that the caller can read; when the shipment of an order holds an order that the caller cannot read, it lists every input ID. A repeat with the same idempotencyKey and order IDs returns the first result. That repeat fails with an error when a later bundleShipments emptied the new shipment or the shipment that the orders left.

Requires a client key with one of these scopes: admin:shipments:writeRequires this member role or higher: SELLER
splitShipment(
  input: SplitShipmentInput!
): SplitShipmentPayload!

Arguments

ArgumentTypeDescription
inputSplitShipmentInput!The orders to move.

Return type

SplitShipmentPayload!