Update an order
Status, paid, tracking number and notes - what the admin order screen changes. Requires orders:write.
Authentication
AuthorizationBearer
An API key from the store's admin: חנות > API ומפתחות. Send it as Authorization: Bearer coi_sk_... (or X-Api-Key: coi_sk_...). Never in the URL - ?apikey= is refused with 400.
Path parameters
id
Request
This endpoint expects an object.
status
One of the store's status ids (see status.id on orders; a wrong id is answered with the list).
paid
trackingNumber
null clears it. Shown in the admin order screen and in the status email.
adminNotes
notifyCustomer
Email the customer that the status changed (with the tracking number when there is one). Sent only when the status really changed, is not 1 or 2, the order has an email, and "notify customers of status changes" is on in the store settings. customerNotified in the answer says whether it was sent.
Response
The updated order, plus customerNotified.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
