Partial order object (Partial<Order>). No schema validates its shape: the handler does a direct cast to Partial<Order>, so any key is accepted at the transport level. Use the same field names documented in Create an order so the backend recognizes them — a key the order model does not declare is ignored.
metafieldsarray
Merchant-owned data. They MERGE with the existing ones: entries matching (namespace, key) are updated, new ones are added, and the ones you do not name are KEPT — so writing yours does not erase the ones the channel wrote. See [Metafields](/en/api/orders/metafields).
metafields.namespacestringrequired
Groups metafields from the same source or purpose.
metafields.keystringrequired
Name of the datum within its namespace. Together with namespace it forms the identity used to merge.
metafields.valueanyrequired
The datum. Accepts any JSON value.
metafields.typestring
A label for the data type, so a consumer knows how to read it.
metafields.descriptionstring
Free text explaining what that metafield is for.
The request body accepts a partial order object (Partial<Order>): you send only the properties you want to change and the rest of the document stays intact.
Use the dedicated endpoints to change status
This endpoint is not designed to advance the order's lifecycle. For that, use the state transition endpoints (/accept, /reject, /cancel, /status, /transition), which apply the state machine's business rules and get logged in the audit trail. Sending orderStatus (or other computed fields like items, subtotal, tax, or total) directly through this endpoint bypasses that business validation — avoid doing so, even though the transport layer doesn't explicitly reject it.
Adds a note to the order's history. Unlike notes (a replaceable free-text field via PUT /orders/:orderId), a comment is recorded as an append-only event.