相关接口
以下接口适用于数据集成 API,对接前请了解 API 接入流程
发送数据到Lenovo
Description:发送数据至Lenovo
Method:POST
ContentType:application/json
Path:https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/{data_category}/{biz_key}
data_category | biz_key |
---|---|
cpsp | ba_po_delivery |
业务数据说明
参数名称 | 必填 | 参数类型 | 长度 | 参数格式 | 描述 |
---|---|---|---|---|---|
version_no | Y | string | 40 | --- | 版本流水号/整包数据唯一码 |
pono | Y | string | 20 | Real PO number | |
poline | Y | string | 20 | --- | Real PO Line number |
poqty | Y | number | Real PO Quantity | ||
plant | Y | string | 20 | 工厂 | |
dc | Y | string | 20 | Geo | |
bano | Y | string | 20 | Build ahead PO number | |
baline | Y | string | 20 | Build ahead PO line | |
baqty | Y | number | Build ahead PO Quantity netted with delivery | ||
matnr | Y | string | 20 | Product number | |
netted_baqty | Y | number | Qty netted with real PO | ||
netted_poqty | Y | number | PO Qty used in netting | ||
sys_date | Y | date | yyyy-MM-dd HH:mm:ss | yyyy-MM-dd HH:mm:ss |
请求示例
JSON
{
"batch_id": "11297",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version_no": "",
"plant": "",
"dc": "",
"bano": "",
"baline": "",
"matnr": "",
"baqty": 0,
"netted_baqty": 0,
"netted_poqty": 0,
"pono": "",
"poline": "",
"poqty": 0,
"sys_date": "2022-01-19 14:27:38"
},
{
"version_no": "",
"plant": "",
"dc": "",
"bano": "",
"baline": "",
"matnr": "",
"baqty": 0,
"netted_baqty": 0,
"netted_poqty": 0,
"pono": "",
"poline": "",
"poqty": 0,
"sys_date": "2022-01-19 14:27:38"
}
]
}
返回成功示例
json
{
"code":"0",
"msg":"request success"
}
返回包含错误数据示例
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}