/pb/mp/order/v2/splitOrder{
"operation": {
"method": "POST",
"path": "/pb/mp/order/v2/splitOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 10,
"text": ""
},
"requestExample": {
"split_mod": 1,
"global_order_no": "103522074543741032",
"order_item": [
[
{
"quantity": "1",
"pid": "",
"msku": "ST004-V2-YW180-rr",
"item_id": "74090663",
"order_item_no": "211-09390650067751994",
"platform_order_no": "PO-211-09390597638951994"
}
],
[
{
"quantity": "1",
"pid": "",
"msku": "ST004-V2-YW140-rr",
"item_id": "74090664",
"order_item_no": "211-09390646135591994",
"platform_order_no": "PO-211-09390597638951994"
}
]
]
},
"responseExample": {
"code": 0,
"message": "操作成功",
"request_id": "937d31c3-1ee6-4b55-aae4-de1c51dea956.1686042075741",
"response_time": "2023-06-06 17:01:18",
"data": {
"num": 1,
"global_order_no": [
"103320879312134144"
],
"result": [
{
"global_order_no": "103314147463472128"
},
{
"global_order_no": "103320879312134144"
}
]
}
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | split_mod | 拆分模式 | integer | — | Required | 拆分模式:1 按订单商品行拆分(捆绑产品按整套处理);2 按捆绑产品的子产品拆分。 |
| 2 | global_order_no | 系统单号 | string | — | Required | 系统单号 |
| 3 | order_item | 二维数组 | array<array<object>> | — | Required | 二维数组:外层表示拆分商品分组,每个元素为一个分组的商品明细数组 |
| 3.1 | [] | 内层数组 | array<object> | — | Optional | 内层数组:表示该分组的商品明细,每个元素为一个商品明细对象 |
| 3.1.1 | item_id | item_id | string | — | Optional | 商品行主键id【拆分模式split_mod = 1 时必填】 |
| 3.1.2 | quantity | quantity | string | — | Optional | 数量【拆分模式split_mod = 1 时必填】 |
| 3.1.3 | pid | pid | string | — | Optional | 本地商品id【拆分模式split_mod = 2 时必填,没有值传空字符串】 |
| 3.1.4 | order_item_no | order_item_no | string | — | Optional | 订单明细单号【拆分模式split_mod = 2 时必填,没有值传空字符串】 |
| 3.1.5 | msku | msku | string | — | Optional | 平台msku【拆分模式split_mod = 2 时必填,没有值传空字符串】 |
| 3.1.6 | platform_order_no | platform_order_no | string | — | Optional | 平台单号【拆分模式split_mod = 2 时必填,没有值传空字符串】 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0 成功 |
| 2 | message | 提示消息 | string | 操作成功 | Required | 提示消息 |
| 3 | request_id | 请求链路id | string | 8d990d35-8e0a-4103-a670-2d0220235a57.1684316043488 | Required | 请求链路id |
| 4 | response_time | 响应时间 | string | 2023-05-17 17:34:06 | Required | 响应时间 |
| 5 | data | 响应数据 | object | — | Required | 响应数据 |
| 5.1 | num | 成功数量 | integer | 1 | Required | 成功数量 |
| 5.2 | global_order_no | 拆分后新的系统单号 | array<any> | ["103313809484075008"] | Required | 拆分后新的系统单号 |
| 5.3 | result | 拆分后形成的所有系统订单号 | array<object> | — | Required | 拆分后形成的所有系统订单号 |
| 5.3.1 | global_order_no | 系统单号 | string | 103313692201529856 | Required | 系统单号 |
The 拆分订单 API (/pb/mp/order/v2/splitOrder) 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.