Skip to content

DispatchShipmentPayload ​

Type: Object

Result of dispatching a shipment: the shipment and everything created with it, or the validation errors that stopped it.

Fields ​

NameTypeArgsDescriptionDeprecated
errors[FieldError!]!Per-field validation errors, paths indexed into the input (e.g. "packages[0].items[1].quantity"). Empty on success; when non-empty nothing was written and the other fields are null.
items[ShipmentItemState!]Every created item, flattened across all packages; each carries the packageId it belongs to. Null when errors is non-empty.
packages[ShipmentPackageState!]The created packages, numbered 1..n in the order they were supplied. Null when errors is non-empty.
shipmentShipmentStateThe created shipment, recorded as PICKED_UP with shippedAt set to the dispatch time. Null when errors is non-empty.

Relationships ​

Connect machines, automate workflows, and build custom apps for print production.