SHIPMENT 数据
以下接口适用于 通用数据集成
请求地址
- API
环境 | URL |
---|---|
测试 | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/odm/shipment |
正式 | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/shipment |
请求参数
字段 | KEY | 类型 | 必填 | 长度 | 备注 | 示例 |
---|---|---|---|---|---|---|
uid | String | 32 | 数据行唯一标识,存在按 uid 变更,不存在按 业务 key 变更 | |||
bu | String | Y | 50 | PCG 包含:ThinkNB、IdeaNB、ThinkDT、IdeaDT、Workstation;ISG/MBG | ||
po | Y | String | Y | 50 | 客户下给LCFC的PO | 4601044323 |
po_line | Y | String | Y | 10 | 10 | |
order_type | String | 10 | ZEF1 | |||
family | String | Y | 100 | X9_CLAM_KO/机型 | ||
product | Y | String | Y | 20 | MTM | |
site_id | Y | String | Y | 20 | LCFC | |
customer | Y | String | Y | 20 | NEC/Medion/Brazil | |
order_qty | Integer | Y | 10 | 1 | ||
ship_qty | Integer | Y | 10 | 1 | ||
open_qty | Integer | Y | 10 | |||
ocd | Date | order create date(客户给LCFC) | 2023-11-20 | |||
re_rsd | Date | Y | YYYY-MM-DD | 2023-11-21 | ||
rsd | Date | Y | YYYY-MM-DD | 2023-11-22 | ||
ship_date | Date | Y | YYYY-MM-DD | 2023-11-23 | ||
delivery | Y | String | Y | 24 | 出货单号(DN) | |
dn_line_num | Y | String | Y | 25 | 行号(DN Line) | |
comment1 | String | 100 | 预留字段,以备之后使用 | |||
comment2 | String | 100 | 预留字段,以备之后使用 | |||
comment3 | String | 100 | 预留字段,以备之后使用 | |||
comment4 | String | 100 | 预留字段,以备之后使用 |
响应参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
code | String | Y | 0 成功其它失败 |
msg | String | Y | 响应具体信息 |
请求示例
json
{
"batch_id": "90397",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [{
"bu": "ThinkNB",
"po": "4601044323",
"po_line": "10",
"order_type": "ZEF1",
"family": "X9_CLAM_KO/机型",
"product": "MTM",
"site_id": "LCFC",
"customer": "NEC",
"order_qty": "1",
"ship_qty": "1",
"open_qty": "1",
"ocd": "2023-11-22",
"re_rsd": "2023-11-21",
"rsd": "2023-11-23",
"ship_date": "2023-11-24",
"delivery": "demo delivery",
"dn_line_num": "demo dn_line_num",
"comment1": "demo comment1",
"comment2": "demo comment2",
"comment3": "demo comment3",
"comment4": "demo comment4"
}]
}
响应示例
json
{
"code": "0",
"msg": "request success"
}
异常示例
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}
业务错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|