Order sequence
This interface is applicable for data integration API, read Api Access Process first
post data to Lenovo
Description:post order sequence 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 | back_order_seq |
Request data description
Param | Required | Type | Length | Format | Description |
---|---|---|---|---|---|
version_no | Y | string | 40 | --- | version number |
po_id | Y | string | 20 | TDN number | |
po_line | Y | string | 20 | --- | TDN Line |
z_reject_flag | Y | string | 10 | reject:N, accept:Y | |
plant | Y | string | 20 | plant | |
z_reject | N | string | 50 | reject reason |
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",
"z_reject_flag": "1000",
"plant":"LCFC",
"z_reject":"FFFFXXX"
},
{
"version_no": "20202131231",
"po_id": "LCFC",
"po_line": "1010001137",
"z_reject_flag": "1000",
"plant":"LCFC",
"z_reject":"FFFFXXX"
}
]
}
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"
}]
}]
}