/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}"
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | order_list | 订单列表 | array<object> | — | Required | 订单列表,数组长度范围为[1,200](含边界) |
| 1.1 | address_info | 收货信息 | object | — | Optional | 收货信息 |
| 1.1.1 | address_line1 | 详细地址1 | string | — | Optional | 详细地址1 |
| 1.1.2 | address_line2 | 详细地址2 | string | — | Optional | 详细地址2 |
| 1.1.3 | address_line3 | 详细地址3 | string | — | Optional | 详细地址3 |
| 1.1.4 | city | 城市 | string | — | Optional | 城市 |
| 1.1.5 | district | 区/县 | string | — | Optional | 区/县 |
| 1.1.6 | doorplate_no | 门牌号 | string | — | Optional | 门牌号 |
| 1.1.7 | postal_code | 邮编 | string | — | Optional | 邮编 |
| 1.1.8 | receiver_company_name | 公司名 | string | — | Optional | 公司名 |
| 1.1.9 | receiver_country_code | 国家/地区二字码 | string | — | Optional | 国家/地区二字码 |
| 1.1.10 | receiver_mobile | 手机 | string | — | Optional | 手机 |
| 1.1.11 | receiver_name | 收件人 | string | — | Optional | 收件人 |
| 1.1.12 | receiver_tel | 电话 | string | — | Optional | 电话 |
| 1.1.13 | state_or_region | 省/州 | string | — | Optional | 省/州 |
| 1.2 | global_order_no | 全局系统单号 | integer | — | Optional | 全局系统单号 |
| 1.3 | logistics | 物流信息 | object | — | Optional | 物流信息 |
| 1.3.1 | cod_type | 是否COD订单(是 or 否) | string | — | Optional | 是否COD订单(是 or 否) |
| 1.3.2 | sender_tax_no | 税号 | string | — | Optional | 税号 |
| 1.3.3 | sender_tax_type | sender_tax_type | string | — | Optional | 税号类型(VAT/CPF/IOSS/EORI/收件人税号) |
| 1.4 | order_item_list | 商品信息 | array<object> | — | Required | 商品信息 备注:【可以传空列表】,不传空列表时order_list>>order_item_list>>type必传 |
| 1.4.1 | mark | 商品备注 | string | — | Optional | 商品备注 |
| 1.4.2 | msku | msku | string | — | Optional | msku |
| 1.4.3 | price | 单价 | integer | — | Optional | 单价 |
| 1.4.4 | quantity | 数量 | integer | — | Optional | 数量 |
| 1.4.5 | sku | sku | string | — | Optional | sku |
| 1.4.6 | type | 编辑类型 | integer | — | Optional | 编辑类型: 1 新增 2 删除 3 覆盖 |
| 1.4.7 | id | 系统订单商品ID | string | — | Optional | 系统订单商品ID |
| 1.4.8 | platformOrderNo | 平台单号 | string | — | Optional | 平台单号,该字段在type=1 新增时生效 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | code | integer | 10001 | Required | 10002:订单更新成功 10000:订单更新失败 10001:订单更新部分成功 |
| 2 | message | 消息提示 | string | 订单更新部分成功 | Required | 消息提示 |
| 3 | data | 响应数据 | array<object> | — | Required | 响应数据 |
| 3.1 | error_details | 错误信息 | array<object> | [{global_order_no:xx,error_message:xxx},..] | Required | 错误信息 |
| 3.1.1 | global_order_no | 系统单号 | string | — | Optional | 系统单号 |
| 3.1.2 | error_message | 失败原因 | string | — | Optional | 失败原因 |
| 4 | request_id | 请求链路id | string | ad9c1a8625c74f3ea0525e216374e31a1676514819613 | Required | 请求链路id |
| 5 | response_time | 响应时间 | string | 2023-02-16 10:33:40 | Required | 响应时间 |
The 编辑/更新自发货订单 API (/pb/mp/order/v2/updateOrder) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.