Skip to content

订单详情 ​

POST/channel/api/v1/order/detail

Auth: request-token (channel_partner)

返回单个订单的完整详情,含地址、明细行、包裹与文档摘要。订单的 shop_id 必须属于当前伙伴的绑定店铺集合,否则返回 403(不区分“不存在”与“越权”)。

请求头 ​

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

请求体 ​

字段类型必填说明
order_idinteger是要查询的订单 id

响应 ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "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": ["express"],
    "shipping_address": {
      "full_name": "John Doe",
      "company": "Doe GmbH",
      "country_code": "DE",
      "province": "Bavaria",
      "city": "Munich",
      "address1": "Marienplatz 1",
      "postcode": "80331",
      "tel": "+49 89 000000",
      "email": "john@example.com"
    },
    "billing_address": {
      "full_name": "John Doe",
      "company": "Doe GmbH",
      "country_code": "DE",
      "province": "Bavaria",
      "city": "Munich",
      "address1": "Marienplatz 1",
      "tax_id": "DE123456789",
      "postcode": "80331",
      "tel": "+49 89 000000",
      "email": "john@example.com"
    },
    "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": "Gift wrap requested"
      }
    ],
    "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": ["https://cdn.example.com/docs/pkg-1001-label.pdf"],
          "document": []
        }
      }
    ],
    "fee_lines": [
      { "subject": "Product Total", "amount": 99.80, "currency": "EUR", "fee_code": "sub_total" },
      { "subject": "Tax", "amount": 20.94, "currency": "EUR", "fee_code": "tax" }
    ],
    "shop_total": 99.80,
    "meta_documents": [],
    "pallet_label_documents": []
  }
}

meta_documents 固定返回空数组 []。订单级文档请调用 订单文档,包裹级文档请调用 order/package/documents。

敏感字段(已过滤) ​

以下字段永远不会返回: 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、 包裹上的 warehouse_id、fulfillment_warehouse_id。

shop 与 warehouse 仅返回 id / name;地址对象只返回文档约定的 Address 字段。

错误码 ​

code含义
909令牌缺失/无效、应用已停用,或类型不是 channel_partner
400缺少 order_id
403订单不存在,或 shop_id 不在伙伴绑定店铺集合内

cURL ​

cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/order/detail' \
  -H 'request-token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "order_id": 456
}'