Purchase Shipping Label
Shipping Operations
Purchase Shipping Label
Purchase a shipping label for an order using a selected rate
POST
Purchase Shipping Label
V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
Purchase a shipping label for an order after selecting a rate from the Get Shipping Rates endpoint. Provide the same shipment details plus the chosen service code and carrier.Use Cases
- Purchase a label after a vendor selects a rate
- Automate label generation in fulfillment workflows
- Integrate carrier label purchase into custom shipping UIs
Request Body
Accepts the same fields as Get Shipping Rates, plus:The Shopify order number.
The vendor’s ID.
Array of line item IDs to ship. Minimum 1 item.
The service code from the selected rate (e.g.
usps_priority).The shipping carrier provider (e.g.
shippo, shipstation).Carrier-specific code (e.g.
usps, ups, fedex).Package length. Must be a positive number.
Package width. Must be a positive number.
Package height. Must be a positive number.
Package weight. Must be a positive number.
Weight unit (e.g.
lb, kg, oz, g).Distance unit for dimensions (e.g.
in, cm).Destination address. See Get Shipping Rates for field details.
Origin address. See Get Shipping Rates for field details.
Response
200