List Refunds
GET/refunds
Retrieve refunds that you have created.
Request
Query Parameters
An object ID that is used as a cursor in pagination. For instance, if you make a list request and receive 100 objects, ending with obj_foo42, your subsequent call can include after=obj_foo42 in order to fetch the next page of the list.
Possible values: >= 1
and <= 100
Default value: 10
A limit on the number of objects to be returned, between 1 and 100.
Possible values: [ASC
, DESC
]
Default value: DESC
Sort list objects in either ascending or descending order.
Responses
- 200
OK
Response Headers
Acme-Mode
string
Has the value LIVE if the data exists in live production mode or the value TEST if the data exists in test sandbox mode.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
required
Unique identifier for the object.
ID of transaction to refund.
A positive integer value in specified currency's smallest unit. e.g. for SGD, $10 would be represented as 1000 (cents).
Possible values: [SGD
]
Three-letter ISO 4217 currency code in full uppercase.
Possible values: [PENDING
, SUCCEEDED
, FAILED
]
Status of the refund
Possible values: [TRANSACTION_NO_LONGER_REFUNDABLE
, OTHERS
]
Additional information when status is FAILED
, if available.
Time at which the object was created. In ISO 8601 format.
Time at which the object was last updated. In ISO 8601 format.
{
"data": [
{
"id": "rfnd_0FGDYHZMRZF49",
"transactionId": "txn_0FGDZ01BD01KA",
"amount": 420,
"currency": "SGD",
"status": "PENDING",
"resultCode": "TRANSACTION_NO_LONGER_REFUNDABLE",
"createdAt": "2023-04-24T00:00:00.000000Z",
"updatedAt": "2023-04-24T00:00:00.000000Z"
}
],
"hasMore": true
}