Skip to content

订单列表 ​

POST/channel/api/v1/order/list

Auth: request-token (channel_partner)

返回已绑定店铺下订单的分页列表。若传入 shop_id,会先收敛到该伙伴的绑定店铺集合:传入单个未绑定的 shop_id 时直接返回空列表(total = 0),不报错;传入数组时,其中未绑定的 id 会被交集过滤。

请求头 ​

请求头必填说明
request-token是渠道伙伴应用令牌
Content-Type是application/json

请求体 ​

字段类型必填说明
pageNumberinteger否页码,从 1 开始。默认 1
pageSizeinteger否每页条数,最大 100。默认 20
shop_idinteger | array否按店铺筛选;可传单个 id 或 id 数组。单个未绑定的 id 返回空列表;数组中的未绑定 id 会被交集过滤
stateinteger否订单状态筛选,作为 order_status 的别名
keywordsstring否关键字:纯数字按订单 id 精确查询;非数字按 order_no 精确匹配(同样 PI→DN 并大写;不搜索店铺订单号或买家姓名)
order_nostring否按内部订单号筛选;查询前会把 PI 替换为 DN 并转大写
shop_order_nostring否按伙伴自己的订单号筛选
start_timestring否create_time 下界,格式 YYYY-MM-DD HH:mm:ss(作为 start_create_time 的别名)
end_timestring否create_time 上界,格式 YYYY-MM-DD HH:mm:ss(作为 end_create_time 的别名)

响应 ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "list": [
      {
        "id": 456,
        "order_no": "E2C-20260813-0001",
        "shop_order_no": "SO-1001",
        "order_status": "100",
        "order_status_text": "Pending Fulfillment",
        "create_time": "2026-08-13 10:00:00",
        "update_time": "2026-08-13 10:05:00",
        "delivery_time": null,
        "purchase_time": "2026-08-13 09:58:00",
        "shop_id": 123,
        "shop": { "id": 123, "name": "Test Shop" },
        "warehouse": { "id": 1, "name": "Shenzhen Warehouse" },
        "shipping_standard": "STD",
        "currency_symbol": "EUR",
        "labels": [],
        "shipping_address": { "full_name": "John Doe", "country_code": "DE", "city": "Munich" },
        "billing_address": { "full_name": "John Doe", "country_code": "DE", "city": "Munich" },
        "order_item": [
          {
            "sku_id": 789,
            "sku": "PPS-500-BLK",
            "name": "Portable Power Station",
            "quantity": 2,
            "price": 49.90,
            "weight": 5.2,
            "origin_country": "CN",
            "hs_code": "8507600000",
            "shipping_standard": "STD",
            "remark": ""
          }
        ],
        "shipping_packages": [
          {
            "id": 1001,
            "order_id": 456,
            "tracking_number": "1Z999AA10123456784",
            "carrier_code": "UPS",
            "carrier_service_code": "GROUND",
            "gross_weight": 10.4,
            "container_gauge": "60*40*50",
            "std_meta": { "length": 60, "width": 40, "height": 50 },
            "shipped": true,
            "fulfillment_document": {
              "file": [],
              "document": []
            }
          }
        ],
        "fee_lines": [],
        "shop_total": 99.80,
        "meta_documents": [],
        "pallet_label_documents": []
      }
    ],
    "total": 1,
    "current_page": 1,
    "last_page": 1,
    "page_size": 20,
    "has_more": false
  }
}

兼容别名。 列表主字段为 data.list,每页条数为 data.page_size;同一数组同时以 data.data 回显,条数同时以 data.per_page 回显,供旧客户端继续读取。新接入请使用 list / page_size。has_more 由 current_page < last_page 计算。传入单个未绑定的 shop_id 时走早退分支,空列表响应只含 list、data、total、per_page、page_size、current_page,不返回 last_page 与 has_more。

敏感字段(已过滤) ​

以下字段永远不会出现在列表响应中: sale_staff_id、up_staff、sales、member、transaction、invoice_infos、 vip_group_id、sale_region、salesman、accountant、container_analysis、 work_logs、private_remark、inner_remark、cost、margin。

meta_documents 固定返回空数组 [](内部结构不下发)。

错误码 ​

code含义
909令牌缺失/无效、应用已停用,或类型不是 channel_partner
200(空列表)无匹配订单,或筛选的 shop_id 不在绑定店铺内

cURL ​

cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/order/list' \
  -H 'request-token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "pageNumber": 1,
  "pageSize": 20,
  "state": 100
}'