REFUNDED or PARTIALLY_REFUNDED accordingly.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Trigger Refund Request
Unique payment identifier
Example:
"pay_8Ks3Jq1tZxPjYVhRQW2r5"
Amount to refund in smallest unit. If omitted, full amount is refunded
Example:
10000
Reason for refund
Example:
"Customer requested refund"
Additional key-value pairs
Example:
{ "refund_reason_code": "customer_request" }Response
Refund processed successfully
Example:
"pay_8Ks3Jq1tZxPjYVhRQW2r5"
Available options:
REFUNDED, PARTIALLY_REFUNDED Example:
"REFUNDED"
Example:
"txn_9Ls4Kp2uAxQkZWiSRX3s6"
Example:
10000
Example:
"USD"
Example:
10000
Example:
"receipt_abc123"
Example:
"web"
Example:
"Customer requested refund"
Epoch timestamp in milliseconds of when refund was processed
Example:
1728128400000