/pb/mp/order/v2/updateOrder{
"operation": {
"method": "POST",
"path": "/pb/mp/order/v2/updateOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 10,
"text": ""
},
"requestExample": {
"order_list": [
{
"address_info": {
"address_line1": "",
"city": "",
"receiver_country_code": "",
"receiver_mobile": "",
"receiver_name": ""
},
"global_order_no": 1032790274616770600,
"order_item_list": [
{
"quantity": 1,
"price": 1,
"sku": "wjc10_sku",
"type": 3
}
]
}
]
},
"responseExample": "{\n \"code\": 10001,\n \"message\": \"订单更新部分成功\",\n \"request_id\": \"d8e36903-8679-4372-8d09-21d80934d87a.1689907710574\"\n \"response_time\": \"2023-07-21 10:48:30\",\n \"data\": {\n \"error_details\": [\n {\n \"global_order_no\": \"1032790274616770561\",\n \"error_message\": \"系统不存在单号1032790274616770561\"\n }\n ]\n }\n}"
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | order_list | 订单列表 | array<object> | — | 必填 | 订单列表,数组长度范围为[1,200](含边界) |
| 1.1 | address_info | 收货信息 | object | — | 可选 | 收货信息 |
| 1.1.1 | address_line1 | 详细地址1 | string | — | 可选 | 详细地址1 |
| 1.1.2 | address_line2 | 详细地址2 | string | — | 可选 | 详细地址2 |
| 1.1.3 | address_line3 | 详细地址3 | string | — | 可选 | 详细地址3 |
| 1.1.4 | city | 城市 | string | — | 可选 | 城市 |
| 1.1.5 | district | 区/县 | string | — | 可选 | 区/县 |
| 1.1.6 | doorplate_no | 门牌号 | string | — | 可选 | 门牌号 |
| 1.1.7 | postal_code | 邮编 | string | — | 可选 | 邮编 |
| 1.1.8 | receiver_company_name | 公司名 | string | — | 可选 | 公司名 |
| 1.1.9 | receiver_country_code | 国家/地区二字码 | string | — | 可选 | 国家/地区二字码 |
| 1.1.10 | receiver_mobile | 手机 | string | — | 可选 | 手机 |
| 1.1.11 | receiver_name | 收件人 | string | — | 可选 | 收件人 |
| 1.1.12 | receiver_tel | 电话 | string | — | 可选 | 电话 |
| 1.1.13 | state_or_region | 省/州 | string | — | 可选 | 省/州 |
| 1.2 | global_order_no | 全局系统单号 | integer | — | 可选 | 全局系统单号 |
| 1.3 | logistics | 物流信息 | object | — | 可选 | 物流信息 |
| 1.3.1 | cod_type | 是否COD订单(是 or 否) | string | — | 可选 | 是否COD订单(是 or 否) |
| 1.3.2 | sender_tax_no | 税号 | string | — | 可选 | 税号 |
| 1.3.3 | sender_tax_type | sender_tax_type | string | — | 可选 | 税号类型(VAT/CPF/IOSS/EORI/收件人税号) |
| 1.4 | order_item_list | 商品信息 | array<object> | — | 必填 | 商品信息 备注:【可以传空列表】,不传空列表时order_list>>order_item_list>>type必传 |
| 1.4.1 | mark | 商品备注 | string | — | 可选 | 商品备注 |
| 1.4.2 | msku | msku | string | — | 可选 | msku |
| 1.4.3 | price | 单价 | integer | — | 可选 | 单价 |
| 1.4.4 | quantity | 数量 | integer | — | 可选 | 数量 |
| 1.4.5 | sku | sku | string | — | 可选 | sku |
| 1.4.6 | type | 编辑类型 | integer | — | 可选 | 编辑类型: 1 新增 2 删除 3 覆盖 |
| 1.4.7 | id | 系统订单商品ID | string | — | 可选 | 系统订单商品ID |
| 1.4.8 | platformOrderNo | 平台单号 | string | — | 可选 | 平台单号,该字段在type=1 新增时生效 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | code | integer | 10001 | 必填 | 10002:订单更新成功 10000:订单更新失败 10001:订单更新部分成功 |
| 2 | message | 消息提示 | string | 订单更新部分成功 | 必填 | 消息提示 |
| 3 | data | 响应数据 | array<object> | — | 必填 | 响应数据 |
| 3.1 | error_details | 错误信息 | array<object> | [{global_order_no:xx,error_message:xxx},..] | 必填 | 错误信息 |
| 3.1.1 | global_order_no | 系统单号 | string | — | 可选 | 系统单号 |
| 3.1.2 | error_message | 失败原因 | string | — | 可选 | 失败原因 |
| 4 | request_id | 请求链路id | string | ad9c1a8625c74f3ea0525e216374e31a1676514819613 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2023-02-16 10:33:40 | 必填 | 响应时间 |
领星ERP的接口:编辑/更新自发货订单(/pb/mp/order/v2/updateOrder),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。