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/tn/bom |
| Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/bom |
- FTP
| Environment | Partner directory | Lenovo directory | File name |
|---|---|---|---|
| Test | /Planning/SCC/{appName}/tn/bom/ | /Planning/SCC/{appName}/tn/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
| Prod | /Planning/SCC/{appName}/tn/bom/ | /Planning/SCC/{appName}/tn/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
Request data description
| Param | key | Type | Required | Length | Description |
|---|---|---|---|---|---|
| uid | String | 32 | unique id | ||
| bu | String | Y | 50 | ||
| vendor_code | Y | String | Y | 30 | |
| vendor_name | String | Y | 100 | ||
| vendor_father_item | Y | String | Y | 20 | |
| cm_father_item | Y | String | Y | 18 | |
| vendor_child_item | Y | String | Y | 20 | |
| cm_child_item | String | 18 | |||
| quantity_per | Number | Y | 13,3 | ||
| effective_start_date | Date(yyyy-mm-dd hh:mm:ss) | Y | |||
| effective_end_date | Date(yyyy-mm-dd hh:mm:ss) | Y | |||
| priority | Number | 13,3 | alternative item priority | ||
| alternate_item_group | String | 50 | |||
| split | Number | Y | 2,2 | 0.2 | |
| version | Y | String | Y | 8 | yyyymmdd eg:20211012 |
Response data description
| Param | Type | Required | Description |
|---|---|---|---|
| code | String | Y | 0:successful, other:failed |
| msg | String | Y | message |
Request sample
json
{
"vendor_code":"LCFC",
"vendor_name": "",
"vendor_father_item ":"712801000000",
"cm_father_item ":"SA78D09909",
"vendor_child_item": "BLSXSC28C60966",
"odm_child_item ":"BLXSC28C60966",
"cm_child_item ":"SC28C60966 ",
"quantity_per ":"100",
"effective_start_date":"2022-08-01",
"effective_end_date ":"2022-08-01",
"priority ":"2",
"alternate_item_group":"34",
"split ":"0.2",
"version ":"20220801"
}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"
}]
}]
}