Skip to content

Shipments

Open .md

API reference Shipping

Shipments send some or all of an order's lines to one address by one shipping type, with packages, labels and documents.

Learn more: Shipping · Ship an order

13 operations

  • POSTCreate a shipment for a sales order/v2/api/store/{team_slug}/v2/sales_order/{unique_key}/shipmentCreates an empty shipment for an order: one address, one shipping type.
  • GETList the shipments of a sales order/v2/api/store/{team_slug}/v2/sales_order/{unique_key}/shipmentReturns the shipments of an order with their lines, estimates and packages.
  • POSTFilter shipments/v1/api/store/{team_slug}/shipment/filterReturns one page of your team's shipments that match the filters, across all sales orders (quotes, drafts and deleted shipments are left out).
  • PATCHCheck a shipment's address with the carrier/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/shipment/{id}/validate_addressChecks the shipment's shipping address with UPS address validation, for supported countries, and saves the result on the address.
  • GETGet a shipment/v2/api/store/{team_slug}/v2/shipment/{unique_key}A shipment sends some or all of a sales order's (or quote's) lines to one address, by one shipping type.
  • PUTAssign or unassign a team member on a shipment/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/shipment/{id}/assignAdds a team member to a shipment's assignees with action: "assign", or removes them with action: "unassign".
  • PUTChange the status of a shipment/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/shipment/{id}/statusMoves a shipment to another shipment status.
  • PUTUpdate a shipment/v2/api/store/{team_slug}/v2/shipment/{unique_key}Changes a shipment's number, shipping type, address, receiver contact, brand profile, packer and notes.
  • DELETEDelete a shipment/v2/api/store/{team_slug}/v2/shipment/{unique_key}Deletes a shipment with its lines, packages and shipping estimates.
  • POSTDownload shipments as CSV/v1/api/store/{team_slug}/shipment/action/export_csvReturns a CSV file (shipment_export_<time>.csv) with one row per shipment: order number, shipment number (SHIP-...), shipping type, customer name, email and contact, and the full shipping address.
  • POSTDownload 4x6 shipment labels (PDF)/v1/api/store/{team_slug}/shipment/export_labelReturns one PDF of 4" x 6" shipment labels (ship-from and ship-to addresses and a barcode), one per shipment, made while you wait.
  • POSTDownload letter-size shipment labels (PDF)/v1/api/store/{team_slug}/shipment/export_label_fullReturns one PDF of letter-size shipment labels, one per shipment, made while you wait.
  • POSTDownload packing slips (PDF)/v1/api/store/{team_slug}/shipment/export_packing_slipReturns one PDF with a packing slip per shipment, made while you wait.

Legacy and internal (1)

Prefer the operations above. Legacy operations name their replacement; internal ones are built for YoPrint's own apps.

  • PATCHDelete all shipments of an order (retired)Legacy · deprecated/v2/api/store/{team_slug}/v2/sales_order/{hash_id}/shipment/delete_allRetired: this operation does nothing and always answers with the error code depcreated (HTTP 500).