List Refunds
GET/openapi/2024-07/shoplazza-payment/refunds
Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first.
Request
Query Parameters
Starting ID for pagination
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
Filter option:Refund status (e.g., "succeeded", "failed", "processing") succeeded: The refund was successfully processed, and the funds have been returned to the payer. failed: The refund attempt failed, and no funds were returned to the payer. processing: The refund is currently being processed, and the final result is pending confirmation.
Filter option: refund initiation start time (unix timestamp)
Filter option: refund initiation end time (unix timestamp)
Responses
- 200
- 400
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
error code
error message
data object
Response: Refund order list
list object[]
List of refund orders
Refund order ID
Store ID
Settlement account currency
Associated transaction order ID
Refund status (e.g., "succeeded", "failed", "processing") succeeded: The refund was successfully processed, and the funds have been returned to the payer. failed: The refund attempt failed, and no funds were returned to the payer. processing: The refund is currently being processed, and the final result is pending confirmation.
Refund amount
Transaction currency
Original order total amount
Refund initiation time (unix timestamp)
Refund completion time (unix timestamp)
cursor for pagination
{
"code": "string",
"message": "string",
"data": {
"has_more": true,
"list": [
{
"id": "string",
"store_id": "string",
"balance_currency": "string",
"transaction_order_id": "string",
"status": "string",
"amount": "string",
"currency": "string",
"original_order_amount": "string",
"created_at": "string",
"completed_at": "string"
}
],
"cursor": "string"
}
}
InvalidParameter
- application/json
- Schema
- Example
- Example
Schema
error code
error message
{
"code": "string",
"message": "string"
}
{
"code": "InvalidParameter",
"message": "wrong cursor"
}