PO Data
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/odm/po |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/po |
Request data description
Param | KEY | Type | Required | Length | Description | Example |
---|---|---|---|---|---|---|
uid | String | N | 32 | Unique id | ||
po | Y | String | Y | 10 | purchase order | |
po_line | Y | String | Y | 6 | purchase order Line | |
po_type | String | Y | 10 | |||
bu | String | Y | 50 | PCG contains:ThinkNB、IdeaNB、ThinkDT、IdeaDT、Workstation;ISG/MBG | ||
odm | Y | String | Y | 40 | LCFC | |
vendor | String | Y | 150 | NEC/Medion/Brazil | ||
odm_pn | Y | String | Y | 20 | ODM part number | |
odm_pn_desc | String | Y | 50 | ODM part number description | ||
lenovo_pn | Y | String | Y | 50 | lenovo part number | |
order_status | String | Y | 20 | Active(Open) | ||
order_date | Date | Y | order date | YYYY-MM-DD | ||
total_po_qty | Integer | Y | 10 | purchase order quantity | ||
po_open_qty | Integer | Y | 10 | open quantity of the po | ||
re_rsd_date | Date | Y | YYYY-MM-DD | |||
rsd_date | Date | Y | Request ship date | YYYY-MM-DD | ||
version | String | Y | 14 | use PO detail time as version | 20231123171603 | |
comment1 | String | 100 | reserved field | |||
comment2 | String | 100 | reserved field | |||
comment3 | String | 100 | reserved field | |||
comment4 | String | 100 | reserved field |
Response data description
Param | Type | Description |
---|---|---|
code | String | 0: success, others:failed |
msg | String | the detail message, especially useful on failure |
Request sample
json
{
"batch_id": "90397",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [{
"po": "322323",
"po_line": "112122",
"po_type": "1",
"bu": "ThinkNB",
"odm": "LCFC",
"vendor": "demo Vendor",
"odm_pn": "121323",
"odm_pn_desc": "demo odm_pn_desc",
"lenovo_pn": "demo lenovo_pn",
"order_status": "Active",
"order_date": "2023-11-23",
"total_po_qty": "986",
"po_open_qty": "245",
"re_rsd_date": "2023-11-22",
"rsd_date": "2023-11-23",
"version": "12312",
"comment1": "demo comment1",
"comment2": "demo comment2",
"comment3": "demo comment3",
"comment4": "demo comment4"
}]
}
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"
}]
}]
}