Update order metadata
PATCH
/v1/orders/{order_id}
Sets keys in the order's metadata. The keys you send replace the
current ones and the others stay as they are; "" removes the key. It
does not change any other order data. See Metadata.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
order_id*
Type
Requiredinteger
Example
3531Request Body
application/json
JSON "metadata": { "shopify_checkout_id": "abc123", "old_key": "" }
{
}
Responses
Metadata saved. Returns the order with the full metadata.
application/json
JSON "data": { "order": { "id": 3531, "status": "aprovado", "metadata": { "shopify_order_id": "5123456789", "shopify_checkout_id": "abc123" } } }
{
}
PATCH
/v1/orders/{order_id}
Samples
Sandbox
https://api.sandboxappmax.com.brorder_idPaste it once and use it in all playgrounds — the token is saved only in this browser tab and is erased when the tab is closed.
Body
{
"metadata": {
"shopify_checkout_id": "abc123",
"old_key": ""
}
}Double-click the JSON to edit