订单列表
POST
/channel/api/v1/order/listAuth: request-token (channel_partner)
返回已绑定店铺下订单的分页列表。若传入 shop_id,会先收敛到该伙伴的绑定店铺集合:传入单个未绑定的 shop_id 时直接返回空列表(total = 0),不报错;传入数组时,其中未绑定的 id 会被交集过滤。
请求头
| 请求头 | 必填 | 说明 |
|---|---|---|
request-token | 是 | 渠道伙伴应用令牌 |
Content-Type | 是 | application/json |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
pageNumber | integer | 否 | 页码,从 1 开始。默认 1 |
pageSize | integer | 否 | 每页条数,最大 100。默认 20 |
shop_id | integer | array | 否 | 按店铺筛选;可传单个 id 或 id 数组。单个未绑定的 id 返回空列表;数组中的未绑定 id 会被交集过滤 |
state | integer | 否 | 订单状态筛选,作为 order_status 的别名 |
keywords | string | 否 | 关键字:纯数字按订单 id 精确查询;非数字按 order_no 精确匹配(同样 PI→DN 并大写;不搜索店铺订单号或买家姓名) |
order_no | string | 否 | 按内部订单号筛选;查询前会把 PI 替换为 DN 并转大写 |
shop_order_no | string | 否 | 按伙伴自己的订单号筛选 |
start_time | string | 否 | create_time 下界,格式 YYYY-MM-DD HH:mm:ss(作为 start_create_time 的别名) |
end_time | string | 否 | 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 -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
}'