Developers

Orders

Markdown

Update order status

Moves an order under the same rules as the merchant dashboard. It never records a payment and never refunds.

PATCH/stores/{storeId}/v1/orders/{id}/status

completed closes a paid order and delivers any codes held for review. An unpaid order stays unpaid: moving it to processing or completed returns ORDER_NOT_PAID, and only the merchant can confirm a bank transfer. cancelled or returned on a completed order changes the status the merchant sees and moves no money. Refunds stay with the merchant. See Working with orders.

Path parameters

idstringrequired

Request body

statusstringrequired
The status as the merchant sees it, under the same rules as the dashboard.processing completed cancelled returned

Response

dataobjectrequired
order_idstring
statusstring
pending processing completed cancelled returned
payment_statusstring
unpaid paid refunded
updated_atstring (date-time)
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.

Errors

HTTPCodeMeaning
404RESOURCE_NOT_FOUNDThe ID does not exist in this store.
409ORDER_NOT_PAIDThe order is not paid, so it cannot move to processing or completed.
409BANK_TRANSFER_CONFIRM_REQUIREDThe order waits for a bank transfer only the merchant can confirm.
409ORDER_ADMINISTRATIVELY_CANCELLEDThe merchant cancelled this completed order. Bring it back to completed first.
409INVALID_ORDER_TRANSITIONThe order cannot move from its current status to this one.
409INVALID_ADMINISTRATIVE_TRANSITIONOnly a paid order can change this way.
409SHIPPING_IN_PROGRESSA shipment is being created for this order. Wait for it to finish.
409STORE_RULE_REFUSEDA store rule refused the command. Read the resource before you try again.
422INVALID_ORDER_STATUSUnknown status.
403SCOPE_REQUIREDThe token does not carry the required scope.
503APPS_SCOPE_RUNTIME_NOT_READYThe resource is not enabled on this merchant's store yet.

Shared codes are listed in Errors.

    ↑↓ moveEnter openEsc close