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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.draft_idstringrequiredThe draft order's ID, like
draft_01k8qs5s….
Query parameters
sourcestringchannel: a sales channel app brings its channel's order back, and the order names the channel.
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.
Returns
200 The draft, now with its order.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such draft. - 409Not ready, already an order or being paid, out of stock, or an online payment method (
online_payment).