order.refund.record
Finalize a refund intent after the PSP call (ok releases/settles the reservation).
- scope:
orders:write - storefront-visible (bumps the catalog generation): no
- destructive: no
Payload
| field | type | required | notes |
|---|---|---|---|
refundId | string (/^ref_[a-zA-Z0-9]{1,32}$/) | yes | |
ok | boolean | yes | |
providerRefundId | string (≤80 chars) | no | |
errorCode | string (≤60 chars) | no |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"refundId": {
"type": "string",
"pattern": "^ref_[a-zA-Z0-9]{1,32}$"
},
"ok": {
"type": "boolean"
},
"providerRefundId": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"errorCode": {
"type": "string",
"minLength": 1,
"maxLength": 60
}
},
"required": [
"refundId",
"ok"
],
"additionalProperties": false
}Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/order.refund.record.md