Get All Refund Record List

🔒

Requires read_order access scope. More access scope

The Get All Refund Record List retrieve a paginated list of all refund records with detailed filtering options.

This API is especially useful for:

  1. Tracking refund status across multiple orders
  2. Reconciling financial records with refund transactions
  3. Analyzing refund patterns and reasons

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoPagination cursor"next_page_token"
page_sizeint32NoResults per page (default: 10)50
order_idsarray[string]NoFilter by order IDs (max 10)["ord_123","ord_456"]
refund_order_idsarray[string]NoFilter by refund record IDs (max 20)["ref_123","ref_456"]
refund_statusesarray[string]NoFilter by status: pending, finished, failed["finished"]
sort_bystringNoSort field: created_at or updated_at"created_at"
sort_directionstringNoSort order: asc or desc"desc"
created_at_startstringNoFilter records created after (ISO 8601)"2025-01-01T00:00:00Z"
created_at_endstringNoFilter records created before (ISO 8601)"2025-01-31T23:59:59Z"
updated_at_startstringNoFilter records updated after (ISO 8601)"2025-01-15T00:00:00Z"
updated_at_endstringNoFilter records updated before (ISO 8601)"2025-01-15T23:59:59Z"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"API response status code
messagestring"Refund records retrieved"Response message
data.recordsarray[object]-Array of refund records
data.records.idstring"ref_123456"Refund record ID
data.records.refund_pricestring"100.00"Total refund amount
data.records.refund_shippingstring"10.00"Shipping refund amount
data.records.refund_statusstring"finished"Current status
data.records.created_atstring"2025-01-15T10:30:00Z"Creation timestamp
data.records.order_idstring"ord_123456"Original order ID
data.records.refund_line_itemsarray[object]-Refunded items
data.records.refund_line_items.line_item_idstring"li_123"Line item ID
data.records.refund_line_items.refund_quantityint321Quantity refunded
data.records.payment_detailsarray[object]-Payment refund details
data.records.payment_details.payment_methodstring"credit_card"Payment method
data.records.payment_details.refund_pricestring"100.00"Amount refunded
data.cursorstring"next_page_token"Pagination token
data.has_morebooleantrueMore records available

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestringError message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!