Skip to content
API referenceAPI v1admin-sdk 1.1.52Search docs⌘K
Orders · Update an order
API reference / Orders

Update an order

PUT/api/v1/orders/:idorders:write

Changes an order, for example marking it shipped. A status change sends the matching webhook, e.g. orders.shipped.

Path parameters

idintegerrequired

The order's ID.

Body

statusinteger

The new status, e.g. 7 shipped.

fulfillment_totalnumber

Delivery or shipping charge.

dataobject

Order details.

meta_dataobject

Your own extra data.

Headers

Authorizationheaderrequired

Bearer with your secret key, or the merchant's OAuth token.

Idempotency-Keyheader

For apps. Idempotent requests.

Returns

The updated order, with 201.

statusMeaning
1pending: waiting for the customer to pay.
2error: the payment failed.
3paid: orders.paid has been sent.
32partial: part of the total is paid.
4confirmed: the merchant accepted it.
5cancelled.
6prepared: ready to ship or collect.
7shipped.
8delivered.
9completed: delivered and confirmed.
10returned.
11refunded.
12verifying: the merchant is checking it.
13stale: pending for too long.
14archived.

Errors

401The key or token is missing, wrong or revoked, is for the other environment, or doesn't have the scope this endpoint needs.
422A field is wrong, or the order's status can't change any more.