Update refund metadata
PATCH
/v1/refunds/{refund_id}
Sets keys in the refund's metadata, with the same rule as the order:
the keys you send replace the current ones and "" removes the key.
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)
Request Body
application/json
JSON "metadata": { "shopify_checkout_id": "abc123", "old_key": "" }
{
}
Responses
Metadata saved.
application/json
JSON "data": { "refund": { "id": 845, "order_id": 3531, "type": "partial", "amount": 5000, "status": "pending", "metadata": { "additionalProperties": "string" }, "created_at": "2026-12-03 14:10:00" } }
{
}
PATCH
/v1/refunds/{refund_id}
Samples
Sandbox
https://api.sandboxappmax.com.brPaste 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