Skip to content

Create shipment

POST/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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • order_idstringrequired

    The order's ID, like ord_01k8qs5s….

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • carrier_account_idstringrequired

    TypeID with the carr prefix.

  • servicestring · or null

    Defaults to the account's default service.

  • linesarray of objects · or null

    Omit to ship every unit still to ship.

  • parcelsinteger · or null

    Defaults to 1.

  • weight_gramsinteger · or null

    Defaults to the products' weights.

  • collect_codboolean · or null

    Omit to collect when the order awaits cash on delivery.

  • notify_customerboolean

    Email the customer the tracking link.

  • collectobject · or null

    Bring 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.
  • 422validation_failedInvalid input.
  • 503unavailableThe carrier couldn't be reached.