**版本：202201**

# 创建订单退款记录

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

为指定订单新增一条退款记录，声明退款金额及使用的支付渠道；返回新建退款 记录的 ID 与关联的售后记录 ID。

## 请求

**Path参数**

- `id` string (required)

  Order's ID

## 响应

**200 | 404 | 406 | 422**

200

**application/json**

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

**数据结构**

- `id` string

  **示例：** `31e27a7a-6899-4709-93e2-b3d6177c7458`
- `status` string

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

  **示例：** `SPZ00000020-S1`
- `created_at` string

  **示例：** `2024-06-24T08:17:59Z`
- `note` string

  **示例：**
- `refund_fail_reason` string

  **示例：**
- `all_refunded` boolean

  **默认值：** `true`

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

  **示例：** `finished`
- `order` object

  - `id` string

    **示例：** `633130-SPZ00000020`
  - `note`
  - `number` string

    **示例：** `SPZ00000020`
  - `financial_status` string

    **示例：** `refunded`
  - `status` string

    **示例：** `placed`
  - `cancel_reason`
  - `payment_method` string

    **示例：** `bogus_gateway`
  - `fulfillment_status` string

    **示例：** `waiting`
  - `discount_code` string

    **示例：**
  - `discount_applications` string

    **示例：** `[]`
  - `customer_note` string

    **示例：**
  - `sales_platform` string

    **示例：** `shoplazza`
  - `landing_site` string

    **示例：** `https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=`
  - `buyer_accepts_marketing` boolean

    **默认值：** `true`

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

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

    **示例：** `21.10`
  - `total_discount` string

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

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

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

    **示例：** `10.10`
  - `code_discount_total` string

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

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

    **示例：**
  - `created_at` string

    **示例：** `2024-06-24T08:16:57Z`
  - `updated_at` string

    **示例：** `2024-06-24T08:18:00Z`
  - `canceled_at`
  - `customer_deleted_at`
  - `deleted_at`
  - `placed_at` string

    **示例：** `2024-06-24T08:17:12Z`
  - `total_refund_price` string

    **示例：** `21.10`
  - `total_refund_tax` string

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

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

    **示例：** `customize`
  - `total_tip_received` string

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

    **示例：** `39.109.76.165`
  - `source` string

    **示例：** `https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=`
  - `last_landing_url` string

    **示例：** `https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=`
  - `email_status` string

    **示例：** `waiting`
  - `recovery_status` string

    **示例：** `waiting`
  - `total_paid` string

    **示例：** `21.10`
  - `source_name` object

    - `data` string

      **示例：** `Direct`
    - `created_at` string

      **示例：** `2024-06-21T10:44:09Z`
  - `last_referrer_show` object

    - `data` string

      **示例：** `Direct`
    - `created_at` string

      **示例：** `2024-06-24T07:36:48Z`
  - `shipping_line` object

    - `name` string

      **示例：** `test`
  - `customer` object

    - `id` string

      **示例：** `f6de152d-ec40-4734-81e5-62db979da04e`
    - `email` string

      **示例：** `zhangsenjun@shoplazza.com`
    - `first_name` string

      **示例：** `zhang`
    - `last_name` string

      **示例：** `senjun`
    - `phone` string

      **示例：** `+8615014471143`
    - `created_at` string

      **示例：** `2024-04-17T08:43:37Z`
    - `updated_at` string

      **示例：** `2024-04-24T06:02:42Z`
    - `orders_count` integer

      **默认值：** `0`

      **示例：** `14`
    - `total_spent` string

      **示例：** `358.65`
  - `shipping_address` object

    - `first_name` string

      **示例：** `test`
    - `last_name` string

      **示例：** `test`
    - `address1` string

      **示例：** `6 三聖街`
    - `address2` string

      **示例：** `Sam Shing Estate`
    - `phone` string

      **示例：** `+8615014471143`
    - `city` string

      **示例：** `Tuen Mun`
    - `zip` string

      **示例：** `515300`
    - `province` string

      **示例：** `New Territories`
    - `country` string

      **示例：** `Hong Kong SAR, China`
    - `company` string

      **示例：**
    - `latitude`
    - `longitude`
    - `name` string

      **示例：** `test test`
    - `country_code` string

      **示例：** `HK`
    - `province_code` string

      **示例：** `NT`
    - `phone_area_code` string

      **示例：** `CN_86`
    - `email` string

      **示例：** `zhangsenjun@shoplazza.com`
    - `area` string

      **示例：**
    - `extra_info`
  - `billing_address` object

    - `first_name` string

      **示例：** `test`
    - `last_name` string

      **示例：** `test`
    - `address1` string

      **示例：** `6 三聖街`
    - `address2` string

      **示例：** `Sam Shing Estate`
    - `city` string

      **示例：** `Tuen Mun`
    - `zip` string

      **示例：** `515300`
    - `province` string

      **示例：** `New Territories`
    - `country` string

      **示例：** `Hong Kong SAR, China`
    - `company` string

      **示例：**
    - `latitude`
    - `longitude`
    - `name` string

      **示例：** `test test`
    - `country_code` string

      **示例：** `HK`
    - `province_code` string

      **示例：** `NT`
    - `email` string

      **示例：** `zhangsenjun@shoplazza.com`
    - `area` string

      **示例：**
    - `phone` string

      **示例：** `+8615014471143`
  - `payment_line` object

    - `payment_channel` string

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

      **示例：** `bogus_gateway`
    - `transaction_no` string

      **示例：** `test_633130-SPZ00000020`
    - `merchant_id` string

      **示例：**
    - `merchant_email` string

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

    *   Array [

    - `payment_channel` string

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

      **示例：** `bogus_gateway`
    - `transaction_no` string

      **示例：** `test_633130-SPZ00000020`
    - `merchant_id` string

      **示例：**
    - `merchant_email` string

      **示例：**
    - `paid_total` string

      **示例：** `21.10`
    *   ]
  - `line_items` object[]

    *   Array [

    - `id` string

      **示例：** `be0b061c-3895-4ebf-9566-ff282f0f452c`
    - `product_id` string

      **示例：** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
    - `variant_id` string

      **示例：** `88e68830-4ef5-4125-bf7d-aef8047176b2`
    - `variant_title` string

      **示例：** `S-blue-T`
    - `product_title` string

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

      **示例：** `shirt`
    - `quantity` integer

      **默认值：** `0`

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

      **示例：**
    - `fulfillment_status` string

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

      **示例：** `T-M-S-blue-T-A001004`
    - `weight_unit` string

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

      **示例：** `shoplazza`
    - `product_url` string

      **示例：** `/products/shirt`
    - `compare_at_price` string

      **示例：** `12.10`
    - `image` string

      **示例：** `//img.staticdj.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg`
    - `price` string

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

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

      **示例：** `1.10`
    - `properties` object[]

      *   Array [

      - `name` string

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

        **示例：** `S`
      *   ]
    - `custom_properties` object

      - `` object
    - `refund_quantity` integer

      **默认值：** `0`

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

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

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

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

    *   Array [

    - `` object
    *   ]
  - `gift_card_total` string

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

    **示例：** `0.00`
  - `product_tax_included` boolean

    **默认值：** `true`

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

    **示例：** `{"$latest_referrer":"https://sso.stg.shoplazza.com/","$latest_referrer_host":"sso.stg.shoplazza.com","$latest_search_keyword":"未取到值","$latest_traffic_source_type":"引荐流量","address_check":true,"client_id":"1703040491710183","country":"HK","customer_session":"3e86e183-eb19-4e48-b390-1a42738b1de5","domain":"zhangsenjun-shoplazza.stg.myshoplaza.com","fbc":"","fbp":"fb.1.1701051195560.2038310036","inventory_deduction":"order_created","ip":"39.109.76.165","session_id":"1718966647667364","source":"buy_now","traffic":{"tiktok":{"_ttp":"4Czre7yjs-SB67iq0jHoGcl1vmx"}},"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"}`
  - `additional_total` string

    **示例：** `0.00`
  - `additional_prices` object[]

    *   Array [

    - `` object
    *   ]
  - `logistics_code` string

    **示例：**
  - `config` object

    - `page_type` string

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

      **默认值：** `true`

      **示例：** `true`
    - `checkout_business_type` integer

      **默认值：** `0`

      **示例：** `0`
    - `product_tax_included` boolean

      **默认值：** `true`

      **示例：** `true`
    - `checkout_template_type` integer

      **默认值：** `0`

      **示例：** `0`
    - `market_setting` object

      - `primary_market_lang` string

        **示例：** `en-US`
      - `market_lang` string

        **示例：** `en-US`
      - `market_id` string

        **示例：** `311711862569844266`
      - `market_currency` string

        **示例：** `USD`
      - `market_currency_symbol` object

        - `code` string

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

          **示例：** `$`
        - `left` string

          **示例：** `$`
        - `right` string

          **示例：**
      - `market_base_id` string

        **示例：**
      - `market_base_currency` string

        **示例：** `USD`
      - `market_base_currency_symbol` object

        - `code` string

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

          **示例：** `$`
        - `left` string

          **示例：** `$`
        - `right` string

          **示例：**
      - `primary_market_id` string

        **示例：** `311711862569844266`
      - `primary_market_currency` string

        **示例：** `USD`
      - `primary_market_currency_symbol` object

        - `code` string

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

          **示例：** `$`
        - `left` string

          **示例：** `$`
        - `right` string

          **示例：**
      - `market_price_setting` object

        - `local_currency_enabled` boolean

          **默认值：** `true`

          **示例：** `false`
        - `custom_rate_enabled` boolean

          **默认值：** `true`

          **示例：** `false`
        - `custom_rate` integer

          **默认值：** `0`

          **示例：** `0`
        - `rate` integer

          **默认值：** `0`

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

          **默认值：** `0`

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

          **默认值：** `0`

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

          **默认值：** `0`

          **示例：** `0`
        - `local_to_base` integer

          **默认值：** `0`

          **示例：** `0`
        - `adjust` integer

          **默认值：** `0`

          **示例：** `0`
        - `price_round_enabled` boolean

          **默认值：** `true`

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

        **示例：** `US`
- `refund` object

  - `id` string

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

    **示例：** `633130-SPZ00000020`
  - `note` string

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

    **示例：** `21.10`
  - `currency` string

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

    **示例：** `2024-06-24T08:18:00Z`
  - `updated_at` string

    **示例：** `2024-06-24T08:18:00Z`
  - `refund_line_items` object[]

    *   Array [

    - `` object
    *   ]
  - `refund_shipping` string

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

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

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

    **示例：** `finished`

```json
{
  "id": "31e27a7a-6899-4709-93e2-b3d6177c7458",
  "status": "finished",
  "number": "SPZ00000020-S1",
  "created_at": "2024-06-24T08:17:59Z",
  "note": "",
  "refund_fail_reason": "",
  "all_refunded": true,
  "refund_status": "finished",
  "order": {
    "id": "633130-SPZ00000020",
    "note": {},
    "number": "SPZ00000020",
    "financial_status": "refunded",
    "status": "placed",
    "cancel_reason": {},
    "payment_method": "bogus_gateway",
    "fulfillment_status": "waiting",
    "discount_code": "",
    "discount_applications": "[]",
    "customer_note": "",
    "sales_platform": "shoplazza",
    "landing_site": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "buyer_accepts_marketing": true,
    "currency": "USD",
    "total_price": "21.10",
    "total_discount": "0.00",
    "total_tax": "0.00",
    "total_shipping": "11.00",
    "sub_total": "10.10",
    "code_discount_total": "0.00",
    "line_item_discount_total": "0.00",
    "tags": "",
    "created_at": "2024-06-24T08:16:57Z",
    "updated_at": "2024-06-24T08:18:00Z",
    "canceled_at": {},
    "customer_deleted_at": {},
    "deleted_at": {},
    "placed_at": "2024-06-24T08:17:12Z",
    "total_refund_price": "21.10",
    "total_refund_tax": "0.00",
    "total_refund_discount": "0.00",
    "refund_status": "customize",
    "total_tip_received": "0.00",
    "browser_ip": "39.109.76.165",
    "source": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "last_landing_url": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "email_status": "waiting",
    "recovery_status": "waiting",
    "total_paid": "21.10",
    "source_name": {
      "data": "Direct",
      "created_at": "2024-06-21T10:44:09Z"
    },
    "last_referrer_show": {
      "data": "Direct",
      "created_at": "2024-06-24T07:36:48Z"
    },
    "shipping_line": {
      "name": "test"
    },
    "customer": {
      "id": "f6de152d-ec40-4734-81e5-62db979da04e",
      "email": "zhangsenjun@shoplazza.com",
      "first_name": "zhang",
      "last_name": "senjun",
      "phone": "+8615014471143",
      "created_at": "2024-04-17T08:43:37Z",
      "updated_at": "2024-04-24T06:02:42Z",
      "orders_count": 14,
      "total_spent": "358.65"
    },
    "shipping_address": {
      "first_name": "test",
      "last_name": "test",
      "address1": " 6 三聖街",
      "address2": "Sam Shing Estate",
      "phone": "+8615014471143",
      "city": "Tuen Mun",
      "zip": "515300",
      "province": "New Territories",
      "country": "Hong Kong SAR, China",
      "company": "",
      "latitude": {},
      "longitude": {},
      "name": "test test",
      "country_code": "HK",
      "province_code": "NT",
      "phone_area_code": "CN_86",
      "email": "zhangsenjun@shoplazza.com",
      "area": "",
      "extra_info": {}
    },
    "billing_address": {
      "first_name": "test",
      "last_name": "test",
      "address1": " 6 三聖街",
      "address2": "Sam Shing Estate",
      "city": "Tuen Mun",
      "zip": "515300",
      "province": "New Territories",
      "country": "Hong Kong SAR, China",
      "company": "",
      "latitude": {},
      "longitude": {},
      "name": "test test",
      "country_code": "HK",
      "province_code": "NT",
      "email": "zhangsenjun@shoplazza.com",
      "area": "",
      "phone": "+8615014471143"
    },
    "payment_line": {
      "payment_channel": "bogus",
      "payment_method": "bogus_gateway",
      "transaction_no": "test_633130-SPZ00000020",
      "merchant_id": "",
      "merchant_email": ""
    },
    "payment_lines": [
      {
        "payment_channel": "bogus",
        "payment_method": "bogus_gateway",
        "transaction_no": "test_633130-SPZ00000020",
        "merchant_id": "",
        "merchant_email": "",
        "paid_total": "21.10"
      }
    ],
    "line_items": [
      {
        "id": "be0b061c-3895-4ebf-9566-ff282f0f452c",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "variant_id": "88e68830-4ef5-4125-bf7d-aef8047176b2",
        "variant_title": "S-blue-T",
        "product_title": "shirt",
        "product_handle": "shirt",
        "quantity": 1,
        "note": "",
        "fulfillment_status": "waiting",
        "sku": "T-M-S-blue-T-A001004",
        "weight_unit": "kg",
        "vendor": "shoplazza",
        "product_url": "/products/shirt",
        "compare_at_price": "12.10",
        "image": "//img.staticdj.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "price": "10.10",
        "total": "10.10",
        "weight": "1.10",
        "properties": [
          {
            "name": "size",
            "value": "S"
          }
        ],
        "custom_properties": {},
        "refund_quantity": 0,
        "refund_total": "0.00",
        "base_price": "0.00",
        "discount_applications": "[]"
      }
    ],
    "fulfillments": [
      {}
    ],
    "gift_card_total": "0.00",
    "shipping_tax_total": "0.00",
    "product_tax_included": true,
    "refer_info": "{\"$latest_referrer\":\"https://sso.stg.shoplazza.com/\",\"$latest_referrer_host\":\"sso.stg.shoplazza.com\",\"$latest_search_keyword\":\"未取到值\",\"$latest_traffic_source_type\":\"引荐流量\",\"address_check\":true,\"client_id\":\"1703040491710183\",\"country\":\"HK\",\"customer_session\":\"3e86e183-eb19-4e48-b390-1a42738b1de5\",\"domain\":\"zhangsenjun-shoplazza.stg.myshoplaza.com\",\"fbc\":\"\",\"fbp\":\"fb.1.1701051195560.2038310036\",\"inventory_deduction\":\"order_created\",\"ip\":\"39.109.76.165\",\"session_id\":\"1718966647667364\",\"source\":\"buy_now\",\"traffic\":{\"tiktok\":{\"_ttp\":\"4Czre7yjs-SB67iq0jHoGcl1vmx\"}},\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\"}",
    "additional_total": "0.00",
    "additional_prices": [
      {}
    ],
    "logistics_code": "",
    "config": {
      "page_type": "three_step",
      "requires_shipping": true,
      "checkout_business_type": 0,
      "product_tax_included": true,
      "checkout_template_type": 0,
      "market_setting": {
        "primary_market_lang": "en-US",
        "market_lang": "en-US",
        "market_id": "311711862569844266",
        "market_currency": "USD",
        "market_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "market_base_id": "",
        "market_base_currency": "USD",
        "market_base_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "primary_market_id": "311711862569844266",
        "primary_market_currency": "USD",
        "primary_market_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "market_price_setting": {
          "local_currency_enabled": false,
          "custom_rate_enabled": false,
          "custom_rate": 0,
          "rate": 1,
          "back_rate": 1,
          "actual_rate": 1,
          "base_to_local": 0,
          "local_to_base": 0,
          "adjust": 0,
          "price_round_enabled": true
        },
        "market_country": "US"
      }
    }
  },
  "refund": {
    "id": "394765711538398890",
    "order_id": "633130-SPZ00000020",
    "note": "",
    "refund_price": "21.10",
    "currency": "USD",
    "created_at": "2024-06-24T08:18:00Z",
    "updated_at": "2024-06-24T08:18:00Z",
    "refund_line_items": [
      {}
    ],
    "refund_shipping": "11.00",
    "refund_shipping_tax": "0.00",
    "refund_method": "customize",
    "refund_status": "finished"
  }
}
```

```json
{
  "id": "31e27a7a-6899-4709-93e2-b3d6177c7458",
  "status": "finished",
  "number": "SPZ00000020-S1",
  "created_at": "2024-06-24T08:17:59Z",
  "note": "",
  "refund_fail_reason": "",
  "all_refunded": true,
  "refund_status": "finished",
  "order": {
    "id": "633130-SPZ00000020",
    "note": null,
    "number": "SPZ00000020",
    "financial_status": "refunded",
    "status": "placed",
    "cancel_reason": null,
    "payment_method": "bogus_gateway",
    "fulfillment_status": "waiting",
    "discount_code": "",
    "discount_applications": "[]",
    "customer_note": "",
    "sales_platform": "shoplazza",
    "landing_site": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "buyer_accepts_marketing": true,
    "currency": "USD",
    "total_price": "21.10",
    "total_discount": "0.00",
    "total_tax": "0.00",
    "total_shipping": "11.00",
    "sub_total": "10.10",
    "code_discount_total": "0.00",
    "line_item_discount_total": "0.00",
    "tags": "",
    "created_at": "2024-06-24T08:16:57Z",
    "updated_at": "2024-06-24T08:18:00Z",
    "canceled_at": null,
    "customer_deleted_at": null,
    "deleted_at": null,
    "placed_at": "2024-06-24T08:17:12Z",
    "total_refund_price": "21.10",
    "total_refund_tax": "0.00",
    "total_refund_discount": "0.00",
    "refund_status": "customize",
    "total_tip_received": "0.00",
    "browser_ip": "39.109.76.165",
    "source": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "last_landing_url": "https://zhangsenjun-shoplazza.stg.myshoplaza.com/?preview_theme_id=",
    "email_status": "waiting",
    "recovery_status": "waiting",
    "total_paid": "21.10",
    "source_name": {
      "data": "Direct",
      "created_at": "2024-06-21T10:44:09Z"
    },
    "last_referrer_show": {
      "data": "Direct",
      "created_at": "2024-06-24T07:36:48Z"
    },
    "shipping_line": {
      "name": "test"
    },
    "customer": {
      "id": "f6de152d-ec40-4734-81e5-62db979da04e",
      "email": "zhangsenjun@shoplazza.com",
      "first_name": "zhang",
      "last_name": "senjun",
      "phone": "+8615014471143",
      "created_at": "2024-04-17T08:43:37Z",
      "updated_at": "2024-04-24T06:02:42Z",
      "orders_count": 14,
      "total_spent": "358.65"
    },
    "shipping_address": {
      "first_name": "test",
      "last_name": "test",
      "address1": " 6 三聖街",
      "address2": "Sam Shing Estate",
      "phone": "+8615014471143",
      "city": "Tuen Mun",
      "zip": "515300",
      "province": "New Territories",
      "country": "Hong Kong SAR, China",
      "company": "",
      "latitude": null,
      "longitude": null,
      "name": "test test",
      "country_code": "HK",
      "province_code": "NT",
      "phone_area_code": "CN_86",
      "email": "zhangsenjun@shoplazza.com",
      "area": "",
      "extra_info": null
    },
    "billing_address": {
      "first_name": "test",
      "last_name": "test",
      "address1": " 6 三聖街",
      "address2": "Sam Shing Estate",
      "city": "Tuen Mun",
      "zip": "515300",
      "province": "New Territories",
      "country": "Hong Kong SAR, China",
      "company": "",
      "latitude": null,
      "longitude": null,
      "name": "test test",
      "country_code": "HK",
      "province_code": "NT",
      "email": "zhangsenjun@shoplazza.com",
      "area": "",
      "phone": "+8615014471143"
    },
    "payment_line": {
      "payment_channel": "bogus",
      "payment_method": "bogus_gateway",
      "transaction_no": "test_633130-SPZ00000020",
      "merchant_id": "",
      "merchant_email": ""
    },
    "payment_lines": [
      {
        "payment_channel": "bogus",
        "payment_method": "bogus_gateway",
        "transaction_no": "test_633130-SPZ00000020",
        "merchant_id": "",
        "merchant_email": "",
        "paid_total": "21.10"
      }
    ],
    "line_items": [
      {
        "id": "be0b061c-3895-4ebf-9566-ff282f0f452c",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "variant_id": "88e68830-4ef5-4125-bf7d-aef8047176b2",
        "variant_title": "S-blue-T",
        "product_title": "shirt",
        "product_handle": "shirt",
        "quantity": 1,
        "note": "",
        "fulfillment_status": "waiting",
        "sku": "T-M-S-blue-T-A001004",
        "weight_unit": "kg",
        "vendor": "shoplazza",
        "product_url": "/products/shirt",
        "compare_at_price": "12.10",
        "image": "//img.staticdj.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "price": "10.10",
        "total": "10.10",
        "weight": "1.10",
        "properties": [
          {
            "name": "size",
            "value": "S"
          },
          {
            "name": "color",
            "value": "blue"
          },
          {
            "name": "type",
            "value": "T"
          }
        ],
        "custom_properties": {},
        "refund_quantity": 0,
        "refund_total": "0.00",
        "base_price": "0.00",
        "discount_applications": "[]"
      }
    ],
    "fulfillments": [],
    "gift_card_total": "0.00",
    "shipping_tax_total": "0.00",
    "product_tax_included": true,
    "refer_info": "{\"$latest_referrer\":\"https://sso.stg.shoplazza.com/\",\"$latest_referrer_host\":\"sso.stg.shoplazza.com\",\"$latest_search_keyword\":\"未取到值\",\"$latest_traffic_source_type\":\"引荐流量\",\"address_check\":true,\"client_id\":\"1703040491710183\",\"country\":\"HK\",\"customer_session\":\"3e86e183-eb19-4e48-b390-1a42738b1de5\",\"domain\":\"zhangsenjun-shoplazza.stg.myshoplaza.com\",\"fbc\":\"\",\"fbp\":\"fb.1.1701051195560.2038310036\",\"inventory_deduction\":\"order_created\",\"ip\":\"39.109.76.165\",\"session_id\":\"1718966647667364\",\"source\":\"buy_now\",\"traffic\":{\"tiktok\":{\"_ttp\":\"4Czre7yjs-SB67iq0jHoGcl1vmx\"}},\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\"}",
    "additional_total": "0.00",
    "additional_prices": [],
    "logistics_code": "",
    "config": {
      "page_type": "three_step",
      "requires_shipping": true,
      "checkout_business_type": 0,
      "product_tax_included": true,
      "checkout_template_type": 0,
      "market_setting": {
        "primary_market_lang": "en-US",
        "market_lang": "en-US",
        "market_id": "311711862569844266",
        "market_currency": "USD",
        "market_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "market_base_id": "",
        "market_base_currency": "USD",
        "market_base_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "primary_market_id": "311711862569844266",
        "primary_market_currency": "USD",
        "primary_market_currency_symbol": {
          "code": "USD",
          "val": "$",
          "left": "$",
          "right": ""
        },
        "market_price_setting": {
          "local_currency_enabled": false,
          "custom_rate_enabled": false,
          "custom_rate": 0,
          "rate": 1,
          "back_rate": 1,
          "actual_rate": 1,
          "base_to_local": 0,
          "local_to_base": 0,
          "adjust": 0,
          "price_round_enabled": true
        },
        "market_country": "US"
      }
    }
  },
  "refund": {
    "id": "394765711538398890",
    "order_id": "633130-SPZ00000020",
    "note": "",
    "refund_price": "21.10",
    "currency": "USD",
    "created_at": "2024-06-24T08:18:00Z",
    "updated_at": "2024-06-24T08:18:00Z",
    "refund_line_items": [],
    "refund_shipping": "11.00",
    "refund_shipping_tax": "0.00",
    "refund_method": "customize",
    "refund_status": "finished"
  }
}
```

404

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Order not found"
  ]
}
```

```json
{
  "errors": [
    "Order not found"
  ]
}
```

406

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "After-sales is not included in current order."
  ]
}
```

```json
{
  "errors": [
    "After-sales is not included in current order."
  ]
}
```

422

**application/json**

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

**数据结构**

- `errors` string[]

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

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