Tier1 FULL BOM
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/bom |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/t1/bom |
- FTP
Environment | Partner directory | Lenovo directory | File name |
---|---|---|---|
Test | /Planning/SCC/{appName}/t1/bom/ | /Planning/SCC/{appName}/t1/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
Prod | /Planning/SCC/{appName}/t1/bom/ | /Planning/SCC/{appName}/t1/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
Sample :/Planning/SCC/LCFC/t1/bom/bom_update_20220928123000_001
Frequency | TIME | Trans mode | key | Remark |
---|---|---|---|---|
Daily | 00:10:00 | API,FTP,UI(upload) | vendor_code + vendor _father_item + father_item + vendor_child_item + version |
Request data description
Param | Key | Type | Required | Length | Description | Example |
---|---|---|---|---|---|---|
uid | String | 32 | ||||
bu | String | 50 | ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile Tablet | ThinkNB | ||
vendor_code | Y | String | Y | 30 | vendor code | 2022012 |
vendor_name | String | option | 500 | vendor anme | ||
vendor_father_item | Y | String | Y | 30 | father item | |
vendor_parent_item | Y | String | Y | 30 | vendor father item, provide N/A if no father item | |
father_item | Y | String | Y | 30 | lenovo father item | |
vendor_child_item | Y | String | Y | 30 | vendor child item | |
child_item | String | Y | 30 | lenovo child item | ||
quantity_per | Number | Y | 13,3 | usage in father item | ||
effective_start_date | Date | Y | BOM effective start date | yyyy-mm-dd | ||
effective_end_date | Date | Y | BOM effective end date | yyyy-mm-dd | ||
priority | String | Y | 13,3 | priority of alternative code | ||
alternate_item_group | String | option | 50 | |||
split | Number | Y | 4,2 | eg:0.21 | ||
version | Y | String | Y | 16 | yyyyMMddHHmmss | 20211012000000 |
owner | String | option | 50 | |||
vendor_child_item_desc | String | option | 200 | vendor child item description |
Response data description
Param | Type | Required | Description |
---|---|---|---|
code | String | Y | 0:successful, other:failed |
msg | String | Y | message |
Request sample
json
{
"batch_id": "100055",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"child_item": "123",
"effective_end_date": "2022-09-14",
"effective_start_date": "2022-09-14",
"father_item": "213",
"priority": 10.2,
"quantity_per": 10.1,
"split": 0.28,
"vendor_child_item": "eee",
"vendor_code": "eee",
"vendor_father_item": "ee",
"version": "20220914"
}
]
}
Successful response sample
json
{
"code": "0",
"msg": "request success"
}
Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"effective_end_date": "xxxxxxxxxxxx",
...
},
"verify": [{
"type": "value length exceed",
"fields": "effective_end_date"
}]
}]
}