inventory
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/tn/inventory |
| Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/inventory |
- FTP
| Environment | Partner directory | Lenovo directory | File name |
|---|---|---|---|
| Test | /Planning/SCC/{appName}/tn/inventory/ | /Planning/SCC/{appName}/tn/inventory/feedback/ | inventory_{crud}_{yyyyMMddHHmmss}_ |
| Prod | /Planning/SCC/{appName}/tn/inventory/ | /Planning/SCC/{appName}/tn/inventory/feedback/ | inventory_{crud}_{yyyyMMddHHmmss}_ |
Request data description
| Param | key | Type | PCG required | MBG required | Length | Description |
|---|---|---|---|---|---|---|
| uid | String | 32 | unique id | |||
| bu | Y | String | Y | Y | 50 | |
| odm_or_t1_supplier | Y | String | Y | Y | 60 | |
| vendor_code | Y | String | Y | Y | 30 | |
| vendor_name | String | Y | Y | 60 | ||
| vendor_pn | Y | String | Y | Y | 200 | |
| odm_or_t1_pn | String | Y | 200 | |||
| lenovo_pn | String | 200 | ||||
| mpn | String | 200 | manufacturing partnumber | |||
| location | String | Y | 50 | |||
| location_desc | String | Y | 100 | |||
| vendor_qty | Integer | Y | 10 | lenovo stock quantity | ||
| vendor_hub_qty | Integer | Y | 10 | vendor hub stock | ||
| po | Integer | 10 | PO | |||
| unrestricted_qty | Integer | 10 | Valuated Unrestricted-Use Stock | |||
| inspection_qty | Integer | 10 | inspection qty | |||
| block_qty | Integer | 10 | ||||
| open_po_qty | Integer | 10 | ||||
| available_to_allocate | Integer | 10 | ||||
| wip_qty | Integer | Y | 10 | |||
| raw_material | Integer | 10 | ||||
| lenovo_vmi_inventory | Integer | Y | Y | 10 | ||
| version | Y | String | Y | Y | 8 | YYYYMMDD |
| material_type | String | Y | Y | 10 | FG/WIP |
Response data description
| Param | Type | Required | Description |
|---|---|---|---|
| code | String | Y | 0:successful, other:failed |
| msg | String | Y | message |
Request sample
json
{
}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"
}]
}]
}