Refund List
GET/openapi/2022-01/orders/refund_records
Returns refund records across all orders, paginated via cursor and filtered by order IDs, refund record IDs, status, sort field/direction, and create/ update time ranges.
Request
Query Parameters
Order ids, comma-separated, a maximum of 10 ids are supported,for example, '183211-00000005,183211-00000006'.
Refund record id, comma-separated, A maximum of 20 ids are supported, for example: '396114279473883074,400561078532063170'.
Refund record status, comma-separated, status support: pending, finished, failed
Page number
Limit per page, maximum: 100
you can sort the result of record list by created_at or updated_at
Sorting method, which value only desc or asc , desc for descending order, asc for ascending record.
Filter records created at or after date, for example: 2016-01-18T23:41:00Z
Filter records created at or before date, for example: 2016-01-18T23:41:00Z
Filter records last updated at or after date, for example: 2016-01-18T23:41:00Z
Filter records last updated at or before date, for example: 2016-01-18T23:41:00Z
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
records object[]
4005610785320631702.001.000.00customizefinished111111112024-07-10T08:06:43Z2024-07-10T08:06:43Zrefund_line_items object[]
line_item object
00payment_details object[]
400561078544646131767c4f87-bd05-4592-9ab0-374d4183fe59bogusbogus_gateway2.00finished2024-07-10T08:06:43Z0.00additional_prices object[]
0.0064770-00000022{
"records": [
{
"id": "400561078532063170",
"refund_price": "2.00",
"refund_shipping": "1.00",
"refund_shipping_tax": "0.00",
"refund_method": "customize",
"refund_status": "finished",
"note": "11111111",
"created_at": "2024-07-10T08:06:43Z",
"updated_at": "2024-07-10T08:06:43Z",
"refund_line_items": [
{
"line_item": {
"line_item_id": "",
"quantity": 0
},
"tax": "",
"discount": "",
"sub_total": "",
"total": "",
"delete_quantity": ""
}
],
"payment_details": [
{
"id": "400561078544646131",
"payment_line_id": "767c4f87-bd05-4592-9ab0-374d4183fe59",
"payment_channel": "bogus",
"payment_method": "bogus_gateway",
"refund_price": "2.00",
"refund_status": "finished",
"finished_at": "2024-07-10T08:06:43Z"
}
],
"additional_total": "0.00",
"additional_prices": [
{
"name": "",
"price": "",
"biz_id": ""
}
],
"refund_tip": "0.00",
"order_id": "64770-00000022"
}
]
}
{
"records": [
{
"id": "400561078532063170",
"refund_price": "2.00",
"refund_shipping": "1.00",
"refund_shipping_tax": "0.00",
"refund_method": "customize",
"refund_status": "finished",
"note": "11111111",
"created_at": "2024-07-10T08:06:43Z",
"updated_at": "2024-07-10T08:06:43Z",
"refund_line_items": [
{
"line_item": {
"line_item_id": "",
"quantity": 0
},
"tax": "",
"discount": "",
"sub_total": "",
"total": "",
"delete_quantity": ""
}
],
"payment_details": [
{
"id": "400561078544646131",
"payment_line_id": "767c4f87-bd05-4592-9ab0-374d4183fe59",
"payment_channel": "bogus",
"payment_method": "bogus_gateway",
"refund_price": "2.00",
"refund_status": "finished",
"finished_at": "2024-07-10T08:06:43Z"
}
],
"additional_total": "0.00",
"additional_prices": [
{
"name": "",
"price": "",
"biz_id": ""
}
],
"refund_tip": "0.00",
"order_id": "64770-00000022"
}
]
}
422
- application/json
- Schema
- Example
- Result
Schema
{
"errors": [
"Page must be 0 or greater"
]
}
{
"errors": [
"Page must be 0 or greater",
"PerPage must be 0 or greater",
"SortBy must be one of [created_at updated_at]"
]
}