Create shipment
/ admin/ v1/ stores/ {store_id}/ orders/ {order_id}/ shipments- orders:write
- Idempotency-Key supported
Books the order's parcel with the carrier: the units it carries are fulfilled with the waybill, the label is kept and tracking starts.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.order_idstringrequiredThe order's ID, like
ord_01k8qs5s….
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
carrier_account_idstringrequiredTypeID with the
carrprefix.servicestring · or nullDefaults to the account's default service.
linesarray of objects · or nullOmit to ship every unit still to ship.
parcelsinteger · or nullDefaults to 1.
weight_gramsinteger · or nullDefaults to the products' weights.
collect_codboolean · or nullOmit to collect when the order awaits cash on delivery.
notify_customerbooleanEmail the customer the tracking link.
collectobject · or nullBring these back from the customer in the same trip: an exchange at the door, for carriers that swap items.
Returns
201 Booked.
Errors
- 409The order can't ship, or the carrier refused.
- 422
validation_failedInvalid input. - 503
unavailableThe carrier couldn't be reached.