Refund List

🔒

Requires read_order access scope. More access scope

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

ParameterTypeRequiredDescription
order_idsstringOptionalComma-separated order IDs. A maximum of 10 IDs are supported.
refund_record_idsstringOptionalComma-separated refund record IDs. A maximum of 20 IDs are supported.
refund_statusstringOptionalComma-separated refund statuses. Supported values: pending, finished, failed.
pagestringOptionalPage number for pagination.
per_pagestringOptionalNumber of records per page. Maximum: 100.
sort_bystringOptionalSort records by field. Supported values: created_at, updated_at.
sort_directionstringOptionalSorting order. Supported values: asc, desc.
created_at_startstringOptionalFilter records created at or after this date (ISO 8601 format).
created_at_endstringOptionalFilter records created at or before this date (ISO 8601 format).
updated_at_startstringOptionalFilter records updated at or after this date (ISO 8601 format).
updated_at_endstringOptionalFilter records updated at or before this date (ISO 8601 format).

Response Description

📘

The relationships between entities.

Public Response Fields

📘

Public Response Parameters

Successful Response

FieldTypeDescription
records[]array of refund object
records[].idstringUnique identifier for the refund.
records[].order_idstringThe ID of the order associated with the refund.
records[].notestringA note regarding the refund, provided by the merchant or system.
records[]refund_pricestringThe total refund amount as specified by the buyer, represented as a numeric string (e.g., "50.00").
records[].currencystringThe currency code for the refund amount (e.g., USD, EUR).
records[].created_atstringThe timestamp when the refund was created.
records[].updated_atstringThe timestamp of the last update to the refund.
records[].refund_line_itemsarray of RefundLineItemA list of line items (products) included in the refund, detailing specific products and quantities.
records[].payment_detailsarray of PaymentDetailDetails about the payment channels used for the refund.
records[].refund_shippingstringThe shipping cost included in the total refund amount.
records[].refund_shipping_taxstringThe tax amount applied to the refunded shipping cost.
records[].refund_methodstringThe method of the refund:
- none: Unknown
- general: Standard refund
- customize: Custom refund method
refund_statusstring@Deprecated.The current status of the refund:
- pending: Refund is in progress
- failed: Refund failed
- finished: Refund successfully completed

RefundLineItem

FieldTypeDescription
line_item_idstringUnique identifier for the refund line item.
refund_quantityintegerThe number of units being refunded for this line item.
line_itemLineItemDetails of the original order line item associated with this refund.
taxstringThe tax amount applicable to the refunded goods.
discountstringThe refunded amount of any discounts applied to the goods.
sub_totalstringThe total price of the product from the associated line_item.
totalstringThe total refund amount for the goods, including discounts and taxes.
delete_quantitystringThe quantity of the product being refunded before it was shipped.

PaymentDetail

FieldTypeDesc
payment_channelstringRefund payment channel
payment_methodstringRefund payment method
refund_pricestringChannel refund amount
finished_atstringRefund Completion time RFC3339 Time does not exist is an empty string

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "file number error"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

ErrorCodeDescriptionPossible reasons
422StatusUnprocessableEntity1:The shipping address does not pass;ShippingAddress is nil.
2:Get transaction settings error;not exists checkout setting
3:Failed to create order line items;record_not_found
4:create_order_calculate_failed;order price calculate error
5:create_order_build_failed;customer or paymentline information error
6:order_id {order_id} CreateOrderBatchOption failed
7:Get Order Detail failed
8:DecreaseInventory failed
406Create order failed
500StatusInternalServerErrorAborted/NotFound/Unimplemented/Unauthenticated/DeadlineExceeded
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!