Skip to content

Complete draft order

POST/admin/v1/stores/{store_id}/draft-orders/{draft_id}/complete
  • orders:write
  • Idempotency-Key supported

Create the order now: {"payment": "paid"} when the money is already received, or {"payment": "pending", "payment_account_id", "method"} to collect it later with an offline method (cash on delivery, bank transfer).

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.

  • draft_idstringrequired

    The draft order's ID, like draft_01k8qs5s….

Query parameters

  • sourcestring

    channel: a sales channel app brings its channel's order back, and the order names the channel.

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.

Returns

200 The draft, now with its order.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such draft.
  • 409Not ready, already an order or being paid, out of stock, or an online payment method (online_payment).