Create Refund
payment_reference_id identifies the original merchant payment reference, not its platform transaction ID. Order status, refundable amount, risk and fee rules still apply. See response objects.

Merchant integration sequence

The merchant backend creates a refund and shares the hosted claim link with the payer. Webhook delivery and merchant polling are independent and may occur in either order. Confirm success after a verified refund.refunded event or a refund lookup returns REFUNDED. Use that backend-confirmed result when the payer returns to your site. Deduplicate deliveries by event_id and apply each refund outcome once, even when both channels report it. Use the currency and network of the original payment, and make sure the recipient address is valid on that network. Keep enough available balance for the refund amount and fees. When retrying refund creation, reuse the same refund_reference_id with the same original payment, amount, and currency. Set notify_url for a refund-specific notification address, or configure an enabled Portal webhook that subscribes to the refund event. See Webhook rules for verification and acknowledgements.

Authorizations

Authorization
string
header
required

Use HTTP Basic authentication with api_key as username and api_secret as password. Obtain credentials in Portal > Settings > Developer.

Body

application/json

payment_reference_id identifies the original merchant payment reference, not its platform transaction ID. Order status, refundable amount, risk and fee rules still apply.

refund_reference_id
string
required

Merchant refund reference. 1..64; letters, digits, underscores and hyphens. Yes.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
payment_reference_id
string
required

Original merchant payment reference. 1..64; letters, digits, underscores and hyphens. Yes.

Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
refund_amount
string
required

Refund amount. Positive; at most 2 decimal places. Yes.

Pattern: ^(?!0+(?:\.0+)?$)[0-9]+(?:\.[0-9]{1,2})?$
refund_currency
string
required

Refund currency. 4 uppercase letters; valid currency enum. Yes.

Pattern: ^[A-Z]{4}$
refund_reason
string

Refund reason. <=256. No.

metadata
object

Merchant metadata.

notify_url
string<uri>

Explicit webhook URL. Up to 256; HTTP/HTTPS. No.

Maximum string length: 256
Pattern: ^https?://
redirect_url
string<uri>

Completion redirect URL. Up to 256; HTTP/HTTPS. No.

Maximum string length: 256
Pattern: ^https?://
cancel_url
string<uri>

Cancellation redirect URL. Up to 256; HTTP/HTTPS. No.

Maximum string length: 256
Pattern: ^https?://

Response

200 - application/json

Create Refund successful

code
string
required

Business result code; success indicates a successful request

Allowed value: "success"
message
string
required

Result message; success indicates a successful request

Allowed value: "success"
timestamp
integer<int64>
required

Response time as a Unix timestamp in milliseconds

data
object
required

Declared response fields; null values may be omitted. payment_reference_id identifies the original merchant payment reference, not its platform transaction ID. Order status, refundable amount, risk and fee rules still apply.

success
boolean
required

Whether the request succeeded

trace_id
string

Trace ID used for troubleshooting