Skip to main content
GET
Retrieve a refund

Authorizations

x-auth-token
string
header
required

The API token for login provided by UQPay.

Headers

x-client-id
string
required

The API client id generated by UQPAY

Path Parameters

id
string
required

The ID of the refund to retrieve

Example:

"RF1234567890123456789"

Response

200 - application/json

Refund details retrieved successfully

payment_refund_id
string

The unique identifier for the refund

Example:

"RF123456789"

payment_attempt_id
string

The ID of the payment attempt that was refunded

Example:

"PA123456789"

amount
string

The amount refunded

Example:

"10.01"

currency
string<iso-4217>

The three-letter currency code (ISO 4217)

Example:

"USD"

refund_status
enum<string>

The current status of the refund.

  • INITIATED: The refund has been initiated.
  • PROCESSING: The refund is being processed.
  • SUCCEEDED: The refund was successfully completed.
  • FAILED: The refund attempt failed.
  • REVERSAL_INITIATED: The reversal of the refund has been initiated.
  • REVERSAL_PROCESSING: The reversal of the refund is currently being processed.
  • REVERSAL_SUCCEEDED: The reversal of the refund was successfully completed.
Available options:
INITIATED,
PROCESSING,
SUCCEEDED,
FAILED,
REVERSAL_INITIATED,
REVERSAL_PROCESSING,
REVERSAL_SUCCEEDED
Example:

"SUCCEEDED"

create_time
string<date/time>

The time at which this payment refund was created.

Example:

"2024-03-01T00:00:00+08:00"

update_time
string<date/time>

Last time at which this payment refund was updated or operated on.

Example:

"2024-03-01T00:00:00+08:00"

reason
string

The reason for the refund

Maximum string length: 100
Example:

"Order 1234 has been returned"

metadata
object

Additional metadata associated with the refund. User-defined key-value pairs.

Example: