PO_LIST
This interface is applicable for data integration API, read Api Access Process first
Request address
- API
Environment | URL |
---|---|
Test | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/pr/po_list |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/pr/po_list |
Request data description
Param | KEY | Type | Required | Length | Description | Sample |
---|---|---|---|---|---|---|
mandt | String | Y | 3 | 128 | ||
ips_id | String | Y | 20 | version no | IPS**** | |
guid | String | 32 | sytem ID | **** | ||
bu | String | Y | 10 | Brand | LNB | |
pr_no | String | Y | 20 | PR number | **** | |
lnv_pn | String | 18 | lenovo part number | **** | ||
plant | String | 20 | plant | W*****N | ||
peg_qty | Number | Y | 10,3 | PEG quantity | 0.000 | |
fail_qty | Number | 10,3 | Fail quantity | 10.000 | ||
mrday | String | Y | 8 | Supply date yyyyMMdd | 20231106 | |
reserve_type | String | Y | 70 | Rerv type | GA | |
pr_required_date | String | Y | 8 | PR required date yyyyMMdd | 20230819 | |
pr_expired_date | String | Y | 8 | PR expired date yyyyMMdd | 20231217 | |
po | String | Y | 16 | PO | **** | |
po_line | String | Y | 12 | PO line | 1 | |
custso | String | Y | 16 | customer SO | **** | |
custsoline | String | Y | 12 | customer SO line | 2 | |
ordqty | Integer | Y | 10 | order quantity | 2 | |
sys_timestamp | String | Y | 40 | system time,YYYYMMDD HH24:MI:SS | 20231107 22:10:10 | |
po_mrday | String | Y | 8 | PO mr dte,YYYYMMDD | 20231116 | |
odm | String | Y | 200 | WISTRON/COMPAL | WI*****ON | |
zline | String | 12 | line | |||
res_pn | String | 40 |
Response data description
Param | Type | Required | Description |
---|---|---|---|
code | String | Y | 0:successful, other:failed |
msg | String | Y | message |
Request sample
json
{
"batch_id": "1",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [{
"mandt": "128",
"ips_id": "IPS****",
"guid": "****",
"bu": "LNB",
"pr_no": "****",
"lnv_pn": "****",
"plant": "ABCD",
"peg_qty": "130.000",
"fail_qty": "10.000",
"mrday": "20231106",
"reserve_type": "GA",
"pr_required_date": "20230819",
"pr_expired_date": "20231217",
"po": "****",
"po_line": "10",
"custso": "****",
"custsoline": "30",
"ordqty": "2",
"sys_timestamp": "20231107 22:10:10",
"po_mrday": "20231116",
"odm": "ABCD",
"zline": "",
"res_pn": ""
}]
}
Successful response sample
json
{
"code": "0",
"msg": "request success"
}
Failed reponse sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "COMPAL",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}