Admin API / Mutations

createShipmentDocument

Makes one PDF for 1 to 100 shipments, in input order. Per shipment: the label and any commercial invoice, then the packing slip. Every shipment must qualify, or no file is made. Packing slips are 4 × 6 in, list sold orders only, and show product images when the caller's packing slip setting is on. Needs the admin:contactDetails:read client scope, and fails with FORBIDDEN without it, because labels and packing slips show the recipient address. A repeat makes a second file.

Requires a client key with one of these scopes: admin:shipments:readRequires this member role or higher: SELLER A member below this role, or an inactive member, who has outstanding seller obligations can also call it.
createShipmentDocument(
  input: CreateShipmentDocumentInput!
): CreateShipmentDocumentPayload!

Arguments

ArgumentTypeDescription
inputCreateShipmentDocumentInput!The shipments of the document and what it holds.

Return type

CreateShipmentDocumentPayload!