Create a refund for a completed payment
The API token for login provided by UQPay.
The API client id generated by UQPAY
Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts. If omitted or empty, the request is executed using the master account.
More information at Connected Accounts.
A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.
The ID of the payment intent to refund
36"PI1234567890123456789"
The amount to refund
"10.01"
The reason for the refund
100"Return good"
The ID of the payment attempt to refund
"PA1234567890123456789"
Additional metadata for the refund
{
"customer_id": "cust_12345",
"order_id": "order_6789"
}Refund created successfully
The unique identifier for the refund
"RF123456789"
The ID of the payment attempt that was refunded
"PA123456789"
The amount refunded
"10.01"
The three-letter currency code (ISO 4217)
"USD"
The current status of the refund
INITIATED, PROCESSING, SUCCEEDED, FAILED, REVERSAL_INITIATED, REVERSAL_PROCESSING, REVERSAL_SUCCEEDED "SUCCEEDED"
The time at which this payment refund was created.
"2024-03-01T00:00:00+08:00"
Last time at which this payment refund was updated or operated on.
"2024-03-01T00:00:00+08:00"
The reason for the refund
100"Order 1234 has been returned"
Additional metadata associated with the refund. User-defined key-value pairs.
{
"customer_id": "cust_12345",
"order_id": "order_6789"
}