**版本：202201**

# 查询订单退款记录列表

**GET** `/openapi/2022-01/orders/:id/refund`

返回指定订单上的全部退款记录，同时返回查询时刻订单的支付状态和订单状态。

## 请求

**Path参数**

- `id` string (required)

  Order's ID

## 响应

**200 | 404 | 422**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `all_refunded` boolean

  **默认值：** `true`

  **示例：** `false`
- `order_financial_status` string

  **示例：** `partially_refunded`
- `order_status` string

  **示例：** `finished`
- `refund_discount_total` string

  **示例：**
- `refund_status` string

  **示例：**
- `refund_tax_total` string

  **示例：**
- `refund_total` string

  **示例：**
- `refunds` object[]

  *   Array [

  - `created_at` string

    **示例：** `2024-07-15T09:17:26Z`
  - `currency` string

    **示例：** `USD`
  - `id` string

    **示例：** `402390816770768890`
  - `note` string

    **示例：**
  - `order_id` string

    **示例：** `10234-00020257`
  - `payment_details` object[]

    *   Array [

    - `finished_at` string

      **示例：** `2024-07-15T09:17:28Z`
    - `payment_channel` string

      **示例：** `stripe`
    - `payment_method` string

      **示例：** `credit_card`
    - `refund_price` string

      **示例：** `14.83`
    *   ]
  - `refund_line_items` object[]

    *   Array [

    - `discount` string

      **示例：** `1.00`
    - `line_item` object

      - `base_price` string

        **示例：** `0.00`
      - `compare_at_price` string

        **示例：** `15.99`
      - `custom_properties` object

        - `` object
      - `discount_applications` string

        **示例：** `[{"type":"discount_flashsale","subtype":"discount_flashsale","discount_id":"f8d442e1-ed00-4f56-9c2a-02db77ebf41a","title":"专辑","value":"","discount_type":"","value_type":"","allocation_method":"","target_selection":"","target_type":"","total_discount_amount":"0","discount_amount":"0","is_free_gift":false,"discount_quantity":1,"is_need_split":true,"discount_text":"Flash Sale","groups":null,"extents":null},{"type":"discount_rebate","subtype":"discount_rebate","discount_id":"20e26ce3-eb11-4c4a-944f-b7aee1f0bf1a","title":"全场满减","value":"","discount_type":"fixed_amount","value_type":"fixed_amount","allocation_method":"across","target_selection":"all","target_type":"line_item","total_discount_amount":"1","discount_amount":"1","is_free_gift":false,"discount_quantity":1,"is_need_split":false,"discount_text":"Threshold Promo","groups":null,"extents":null}]`
      - `fulfillment_status` string

        **示例：** `returned`
      - `id` string

        **示例：** `df111f19-b1f2-4ffc-b293-743a432f9f64`
      - `image` string

        **示例：** `{"alt":"","height":0,"path":"be0a695b89eb1070e7d418d276ef1f15.jpeg","src":"//img.staticdj.com/be0a695b89eb1070e7d418d276ef1f15.jpeg","width":0}`
      - `note` string

        **示例：**
      - `price` string

        **示例：** `15.83`
      - `product_handle` string

        **示例：** `counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm`
      - `product_id` string

        **示例：** `81b93917-b32b-481a-a654-d5f659bcc9a2`
      - `product_title` string

        **示例：** `(Counted/Stamped)(Big Size) 11CT Ginkgo biloba- Cross Stitch 60*60cm/23.62*23.62in`
      - `product_url` string

        **示例：** `/products/counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm`
      - `properties` object[]

        *   Array [

        - `name` string

          **示例：** `Style`
        - `value` string

          **示例：** `11CT Stamped`
        *   ]
      - `quantity` integer

        **默认值：** `0`

        **示例：** `1`
      - `refund_quantity` integer

        **默认值：** `0`

        **示例：** `1`
      - `refund_total` string

        **示例：** `15.83`
      - `requires_shipping` boolean

        **默认值：** `true`

        **示例：** `true`
      - `sku` string

        **示例：** `452933.01`
      - `total` string

        **示例：** `15.83`
      - `variant_id` string

        **示例：** `28c7edc7-a90b-47e8-a6ae-52708676d9cd`
      - `variant_title` string

        **示例：** `11CT Stamped`
      - `vendor` string

        **示例：** `tapestrymarket`
      - `weight` string

        **示例：** `0.00`
      - `weight_unit` string

        **示例：** `kg`
    - `line_item_id` string

      **示例：** `df111f19-b1f2-4ffc-b293-743a432f9f64`
    - `refund_quantity` integer

      **默认值：** `0`

      **示例：** `1`
    - `sub_total` string

      **示例：** `15.83`
    - `tax` string

      **示例：** `0.00`
    - `total` string

      **示例：** `14.83`
    *   ]
  - `refund_method` string

    **示例：** `general`
  - `refund_price` string

    **示例：** `14.83`
  - `refund_shipping` string

    **示例：** `0.00`
  - `refund_shipping_tax` string

    **示例：** `0.00`
  - `refund_status` string

    **示例：** `finished`
  - `updated_at` string

    **示例：** `2024-07-15T09:17:28Z`
  *   ]

```json
{
  "all_refunded": false,
  "order_financial_status": "partially_refunded",
  "order_status": "finished",
  "refund_discount_total": "",
  "refund_status": "",
  "refund_tax_total": "",
  "refund_total": "",
  "refunds": [
    {
      "created_at": "2024-07-15T09:17:26Z",
      "currency": "USD",
      "id": "402390816770768890",
      "note": "",
      "order_id": "10234-00020257",
      "payment_details": [
        {
          "finished_at": "2024-07-15T09:17:28Z",
          "payment_channel": "stripe",
          "payment_method": "credit_card",
          "refund_price": "14.83"
        }
      ],
      "refund_line_items": [
        {
          "discount": "1.00",
          "line_item": {
            "base_price": "0.00",
            "compare_at_price": "15.99",
            "custom_properties": {},
            "discount_applications": "[{\"type\":\"discount_flashsale\",\"subtype\":\"discount_flashsale\",\"discount_id\":\"f8d442e1-ed00-4f56-9c2a-02db77ebf41a\",\"title\":\"专辑\",\"value\":\"\",\"discount_type\":\"\",\"value_type\":\"\",\"allocation_method\":\"\",\"target_selection\":\"\",\"target_type\":\"\",\"total_discount_amount\":\"0\",\"discount_amount\":\"0\",\"is_free_gift\":false,\"discount_quantity\":1,\"is_need_split\":true,\"discount_text\":\"Flash Sale\",\"groups\":null,\"extents\":null},{\"type\":\"discount_rebate\",\"subtype\":\"discount_rebate\",\"discount_id\":\"20e26ce3-eb11-4c4a-944f-b7aee1f0bf1a\",\"title\":\"全场满减\",\"value\":\"\",\"discount_type\":\"fixed_amount\",\"value_type\":\"fixed_amount\",\"allocation_method\":\"across\",\"target_selection\":\"all\",\"target_type\":\"line_item\",\"total_discount_amount\":\"1\",\"discount_amount\":\"1\",\"is_free_gift\":false,\"discount_quantity\":1,\"is_need_split\":false,\"discount_text\":\"Threshold Promo\",\"groups\":null,\"extents\":null}]",
            "fulfillment_status": "returned",
            "id": "df111f19-b1f2-4ffc-b293-743a432f9f64",
            "image": "{\"alt\":\"\",\"height\":0,\"path\":\"be0a695b89eb1070e7d418d276ef1f15.jpeg\",\"src\":\"//img.staticdj.com/be0a695b89eb1070e7d418d276ef1f15.jpeg\",\"width\":0}",
            "note": "",
            "price": "15.83",
            "product_handle": "counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm",
            "product_id": "81b93917-b32b-481a-a654-d5f659bcc9a2",
            "product_title": "(Counted/Stamped)(Big Size) 11CT Ginkgo biloba- Cross Stitch  60*60cm/23.62*23.62in",
            "product_url": "/products/counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm",
            "properties": [
              {
                "name": "Style",
                "value": "11CT Stamped"
              }
            ],
            "quantity": 1,
            "refund_quantity": 1,
            "refund_total": "15.83",
            "requires_shipping": true,
            "sku": "452933.01",
            "total": "15.83",
            "variant_id": "28c7edc7-a90b-47e8-a6ae-52708676d9cd",
            "variant_title": "11CT Stamped",
            "vendor": "tapestrymarket",
            "weight": "0.00",
            "weight_unit": "kg"
          },
          "line_item_id": "df111f19-b1f2-4ffc-b293-743a432f9f64",
          "refund_quantity": 1,
          "sub_total": "15.83",
          "tax": "0.00",
          "total": "14.83"
        }
      ],
      "refund_method": "general",
      "refund_price": "14.83",
      "refund_shipping": "0.00",
      "refund_shipping_tax": "0.00",
      "refund_status": "finished",
      "updated_at": "2024-07-15T09:17:28Z"
    }
  ]
}
```

```json
{
  "all_refunded": false,
  "order_financial_status": "partially_refunded",
  "order_status": "finished",
  "refund_discount_total": "",
  "refund_status": "",
  "refund_tax_total": "",
  "refund_total": "",
  "refunds": [
    {
      "created_at": "2024-07-15T09:17:26Z",
      "currency": "USD",
      "id": "402390816770768890",
      "note": "",
      "order_id": "10234-00020257",
      "payment_details": [
        {
          "finished_at": "2024-07-15T09:17:28Z",
          "payment_channel": "stripe",
          "payment_method": "credit_card",
          "refund_price": "14.83"
        }
      ],
      "refund_line_items": [
        {
          "discount": "1.00",
          "line_item": {
            "base_price": "0.00",
            "compare_at_price": "15.99",
            "custom_properties": {},
            "discount_applications": "[{\"type\":\"discount_flashsale\",\"subtype\":\"discount_flashsale\",\"discount_id\":\"f8d442e1-ed00-4f56-9c2a-02db77ebf41a\",\"title\":\"专辑\",\"value\":\"\",\"discount_type\":\"\",\"value_type\":\"\",\"allocation_method\":\"\",\"target_selection\":\"\",\"target_type\":\"\",\"total_discount_amount\":\"0\",\"discount_amount\":\"0\",\"is_free_gift\":false,\"discount_quantity\":1,\"is_need_split\":true,\"discount_text\":\"Flash Sale\",\"groups\":null,\"extents\":null},{\"type\":\"discount_rebate\",\"subtype\":\"discount_rebate\",\"discount_id\":\"20e26ce3-eb11-4c4a-944f-b7aee1f0bf1a\",\"title\":\"全场满减\",\"value\":\"\",\"discount_type\":\"fixed_amount\",\"value_type\":\"fixed_amount\",\"allocation_method\":\"across\",\"target_selection\":\"all\",\"target_type\":\"line_item\",\"total_discount_amount\":\"1\",\"discount_amount\":\"1\",\"is_free_gift\":false,\"discount_quantity\":1,\"is_need_split\":false,\"discount_text\":\"Threshold Promo\",\"groups\":null,\"extents\":null}]",
            "fulfillment_status": "returned",
            "id": "df111f19-b1f2-4ffc-b293-743a432f9f64",
            "image": "{\"alt\":\"\",\"height\":0,\"path\":\"be0a695b89eb1070e7d418d276ef1f15.jpeg\",\"src\":\"//img.staticdj.com/be0a695b89eb1070e7d418d276ef1f15.jpeg\",\"width\":0}",
            "note": "",
            "price": "15.83",
            "product_handle": "counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm",
            "product_id": "81b93917-b32b-481a-a654-d5f659bcc9a2",
            "product_title": "(Counted/Stamped)(Big Size) 11CT Ginkgo biloba- Cross Stitch  60*60cm/23.62*23.62in",
            "product_url": "/products/counted-stamped-big-size-ginkgo-biloba-3-strands-cross-stitch-60-60cm",
            "properties": [
              {
                "name": "Style",
                "value": "11CT Stamped"
              }
            ],
            "quantity": 1,
            "refund_quantity": 1,
            "refund_total": "15.83",
            "requires_shipping": true,
            "sku": "452933.01",
            "total": "15.83",
            "variant_id": "28c7edc7-a90b-47e8-a6ae-52708676d9cd",
            "variant_title": "11CT Stamped",
            "vendor": "tapestrymarket",
            "weight": "0.00",
            "weight_unit": "kg"
          },
          "line_item_id": "df111f19-b1f2-4ffc-b293-743a432f9f64",
          "refund_quantity": 1,
          "sub_total": "15.83",
          "tax": "0.00",
          "total": "14.83"
        }
      ],
      "refund_method": "general",
      "refund_price": "14.83",
      "refund_shipping": "0.00",
      "refund_shipping_tax": "0.00",
      "refund_status": "finished",
      "updated_at": "2024-07-15T09:17:28Z"
    }
  ]
}
```

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Unable to find resource"
  ]
}
```

```json
{
  "errors": [
    "Unable to find resource"
  ]
}
```

422

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Invalid ID"
  ]
}
```

```json
{
  "errors": [
    "Invalid ID"
  ]
}
```
