Skip to main content
POST

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string
required

A single 1–255 character printable ASCII value without spaces. The checkout-submit: prefix is reserved (case-insensitive). Reuse the same key and body after an uncertain response.

Required string length: 1 - 255
Pattern: ^[\x21-\x7e]+$
Example:

"refund-order-example-1"

Path Parameters

id
string
required

Payment transaction ID

Maximum string length: 32
Pattern: ^[A-Za-z0-9_-]{1,32}$

Body

application/json
amount
string

Positive decimal string in the payment currency, within its currency precision. Omit to refund the remaining refundable amount.

Maximum string length: 80
Pattern: ^(0|[1-9]\d{0,19})(\.\d{1,18})?$
Example:

"10.00"

metadata
object

JSON object, at most 16384 UTF-8 bytes when serialized; maximum container depth 10 (root depth 0). Do not include sensitive customer or payment data.

reason
enum<string>
default:requested_by_customer
Available options:
requested_by_customer,
duplicate,
fraudulent,
other

Response

Refund accepted for asynchronous execution

data
object
required