po flag data
This interface is applicable for data integration API, read Api Access Process first
Description:transfer po flag data 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 | po_flag_data |
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 | plant | |
| lnvpn | string | 20 | |||
| lcfcpn | string | 20 | |||
| qty | number | ||||
| mo_flag | string | 10 | |||
| k_flag | string | 10 | |||
| outsourcing_flag | string | 10 |
Request sample
JSON
{
"batch_id": "11297",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version_no": "20202131231",
"po_id": "LCFC",
"po_line": "1",
"plant": "ABCD",
"lnvpn": "",
"lcfcpn": "",
"qty": "1000",
"mo_flag": "1000",
"k_flag": "1000",
"outsourcing_flag": "1000"
},
{
"version_no": "20202131231",
"po_id": "LCFC",
"po_line": "1",
"plant": "ABCD",
"lnvpn": "",
"lcfcpn": "",
"qty": "1000",
"mo_flag": "1000",
"k_flag": "1000",
"outsourcing_flag": "1000"
}
]
}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"
}]
}]
}