Tier1 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/t1/inventory |
| Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/t1/inventory |
- FTP
| Environment | Partner directory | Lenovo directory | File name |
|---|---|---|---|
| Test | /Planning/SCC/{appName}/t1/inventory/ | /Planning/SCC/{appName}/t1/inventory/feedback/ | inventory_{crud}_{yyyyMMddHHmmss}_ |
| Prod | /Planning/SCC/{appName}/t1/inventory/ | /Planning/SCC/{appName}/t1/inventory/feedback/ | inventory_{crud}_{yyyyMMddHHmmss}_ |
Sample :/Planning/SCC/LCFC/t1/inventory/inventory_update_20220928123000_001
| Frequency | Time | Transfer mode |
|---|---|---|
| Daily or Real time | 0:00:00 | Daily version of data (full amount) |
| Frequency | Time | Transfer mode | Key |
|---|---|---|---|
| Weekly Monday | 00:10:00 | API,FTP,UI(upload) | bu + vendor_code + vendor_pn |
Request data description
| Param | key | Type | Required | Length | Description | Example |
|---|---|---|---|---|---|---|
| uid | String | 32 | ||||
| bu | Y | String | Y | 50 | ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile Tablet | ThinkNB |
| vendor_code | Y | String | Y | 30 | ||
| vendor_name | String | option | 500 | |||
| vendor_pn | Y | String | Y | 200 | ||
| lenovo_pn | String | option | 200 | |||
| location | String | option | 200 | |||
| location_desc | String | option | 100 | |||
| vendor_qty | Integer | Y | 10 | ME-D Cover | ||
| vendor_hub_qty | Integer | Y | 10 | 1 | ||
| lenovo_vmi_inventory | Integer | 10 | ||||
| po | Integer | option | 10 | PO | ||
| unrestricted_qty | Integer | option | 10 | Valuated Unrestricted-Use Stock | 1 | |
| inspection_qty | Integer | option | 10 | inspection qty | 1 | |
| block_qty | Integer | option | 10 | 1 | ||
| open_po_qty | Integer | option | 10 | OPEN PO | 1 | |
| available_to_allocate | Integer | option | 10 | 1 | ||
| wip_qty | Integer | option | 10 | 40 | ||
| version | Y | String | Y | 8 | eg:20211012 | 20211012 |
| owner | String | option | 50 |
Response data description
| Param | Type | Required | Description |
|---|---|---|---|
| code | String | Y | 0:successful, other:failed |
| msg | String | Y | message |
Request sample
json
{
"batch_id": "100012",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"version":"20230315",
"bu": "ThinkNB",
"vendor_code": "****",
"vendor_pn": "****",
"vendor_hub_qty": 10,
"po": 123321
}
]
}Successful response sample
json
{
"code": "0",
"msg": "request success"
}Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"bu": "xxxxxxxxxxxx",
...
},
"verify": [{
"type": "value length exceed",
"fields": "bu"
}]
}]
}