Skip to main content
Version: 202201

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 string

    Order ids, comma-separated, a maximum of 10 ids are supported,for example, '183211-00000005,183211-00000006'.

    refund_record_ids string

    Refund record id, comma-separated, A maximum of 20 ids are supported, for example: '396114279473883074,400561078532063170'.

    refund_status string

    Refund record status, comma-separated, status support: pending, finished, failed

    page string

    Page number

    per_page string

    Limit per page, maximum: 100

    sort_by string

    you can sort the result of record list by created_at or updated_at

    sort_direction string

    Sorting method, which value only desc or asc , desc for descending order, asc for ascending record.

    created_at_start string

    Filter records created at or after date, for example: 2016-01-18T23:41:00Z

    created_at_end string

    Filter records created at or before date, for example: 2016-01-18T23:41:00Z

    updated_at_start string

    Filter records last updated at or after date, for example: 2016-01-18T23:41:00Z

    updated_at_end string

    Filter records last updated at or before date, for example: 2016-01-18T23:41:00Z

Responses

200

Schema
    records object[]
  • Array [
  • idstring
    Example: 400561078532063170
    refund_pricestring
    Example: 2.00
    refund_shippingstring
    Example: 1.00
    refund_shipping_taxstring
    Example: 0.00
    refund_methodstring
    Example: customize
    refund_statusstring
    Example: finished
    notestring
    Example: 11111111
    created_atstring
    Example: 2024-07-10T08:06:43Z
    updated_atstring
    Example: 2024-07-10T08:06:43Z
    refund_line_items object[]
  • Array [
  • line_item object
    line_item_idstring
    Example:
    quantityinteger
    Default value: 0
    Example: 0
    taxstring
    Example:
    discountstring
    Example:
    sub_totalstring
    Example:
    totalstring
    Example:
    delete_quantitystring
    Example:
  • ]
  • payment_details object[]
  • Array [
  • idstring
    Example: 400561078544646131
    payment_line_idstring
    Example: 767c4f87-bd05-4592-9ab0-374d4183fe59
    payment_channelstring
    Example: bogus
    payment_methodstring
    Example: bogus_gateway
    refund_pricestring
    Example: 2.00
    refund_statusstring
    Example: finished
    finished_atstring
    Example: 2024-07-10T08:06:43Z
  • ]
  • additional_totalstring
    Example: 0.00
    additional_prices object[]
  • Array [
  • namestring
    Example:
    pricestring
    Example:
    biz_idstring
    Example:
  • ]
  • refund_tipstring
    Example: 0.00
    order_idstring
    Example: 64770-00000022
  • ]