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 | IPS23102705 | |
guid | String | 32 | sytem ID | 3A68DD2086EF1EDE85994C7E502B20DE | ||
bu | String | Y | 10 | Brand | LNB | |
pr_no | String | Y | 20 | PR number | PR2023090881902 | |
lnv_pn | String | 18 | lenovo part number | SBB1G99134 | ||
plant | String | 20 | plant | WISTRON | ||
peg_qty | Number | Y | 10,3 | PEG quantity | 130.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 | 7523798261 | |
po_line | String | Y | 12 | PO line | 00010 | |
custso | String | Y | 16 | customer SO | 4643898220 | |
custsoline | String | Y | 12 | customer SO line | 000030 | |
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 | WISTRON | |
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": "IPS23102705",
"guid": "3A68DD2086EF1EDE85994C7E502B20DE",
"bu": "LNB",
"pr_no": "PR2023090881902",
"lnv_pn": "SBB1G99134",
"plant": "WISTRON",
"peg_qty": "130.000",
"fail_qty": "10.000",
"mrday": "20231106",
"reserve_type": "GA",
"pr_required_date": "20230819",
"pr_expired_date": "20231217",
"po": "7523798261",
"po_line": "10",
"custso": "4643898220",
"custsoline": "30",
"ordqty": "2",
"sys_timestamp": "20231107 22:10:10",
"po_mrday": "20231116",
"odm": "WISTRON",
"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"
}]
}]
}