BA mapping data
This interface is applicable for data integration API, read Api Access Process first
发送数据到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_mapping |
Request data description
Param | Required | Type | Length | Format | Description |
---|---|---|---|---|---|
version_no | Y | string | 40 | --- | version |
plant | Y | string | 20 | Wistron/LCFC/Compal | |
bano | Y | string | 20 | --- | Build ahead PO number |
baline | Y | string | 10 | Build ahead PO line | |
baqty | Y | number | Build ahead PO Quantity | ||
netted_baqty | Y | number | Qty netted with real PO | ||
netted_poqty | Y | number | PO Qty used in netting | ||
pono | Y | string | 16 | Real PO number | |
poline | Y | string | 12 | Real PO Line number | |
poqty | Y | number | Real PO Quantity | ||
status | Y | string | 5 | Real PO status |
Request sample
JSON
{
"batch_id": "11297",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version_no": "",
"plant": "",
"bano": "",
"baline": "",
"baqty": "20",
"netted_baqty": "20",
"netted_poqty": "20",
"pono": "10000000",
"poline": "10",
"poqty": "10",
"status": "1"
},
{
"version_no": "",
"plant": "",
"bano": "",
"baline": "",
"baqty": "20",
"netted_baqty": "20",
"netted_poqty": "20",
"pono": "10000000",
"poline": "10",
"poqty": "10",
"status": "1"
}
]
}
Successful response sample
json
{
"code":"0",
"msg":"request success"
}
Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}