partial build data
This interface is applicable for data integration API, read Api Access Process first
Description:transfer partial build to 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 | partial_build |
Request data description
Param | Required | Type | Length | Format | Description |
---|---|---|---|---|---|
version_no | Y | string | 40 | version | |
po_id | Y | string | 20 | TDN number | |
po_line | Y | string | 20 | TDN Line | |
plant | Y | string | 20 | ||
qty | Y | number | Order Quantity | ||
main_poid | Y | string | 20 | main po id | |
main_poline | Y | string | 20 | main po LINE | |
crdate | Y | date | yyyy-MM-dd HH:mm:ss | create date | |
zflag | N | string | 10 | send flag |
Request sample
JSON
{
"batch_id": "11297",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version_no": "20202131231",
"po_id": "LCFC",
"po_line": "1010001137",
"plant": "SD10W87241",
"qty": "1000",
"main_poid": "fake_data",
"main_poline": "fake_data",
"crdate": "2029-02-04 10:06:39",
"zflag": "fake_data"
},
{
"version_no": "20202131231",
"po_id": "LCFC",
"po_line": "1010001137",
"plant": "SD10W87241",
"qty": "1000",
"main_poid": "fake_data",
"main_poline": "fake_data",
"crdate": "2029-02-04 10:06:39",
"zflag": "fake_data"
}
]
}
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"
}]
}]
}