BOM 数据
以下接口适用于 通用数据集成
请求地址
-API
环境 | URL |
---|---|
测试 | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/tn/bom |
正式 | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/bom |
- FTP
环境 | 合作伙伴 文件目录 | Lenovo 文件目录 | 文件名 |
---|---|---|---|
测试 | /Planning/SCC/{appName}/tn/bom/ | /Planning/SCC/{appName}/tn/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
正式 | /Planning/SCC/{appName}/tn/bom/ | /Planning/SCC/{appName}/tn/bom/feedback/ | bom_{crud}_{yyyyMMddHHmmss}_ |
请求参数
参数 | key | 类型 | 必填 | 长度 | 描述 |
---|---|---|---|---|---|
uid | String | 32 | 数据行唯一标识,存在按 uid 变更,不存在按 业务key 变更 | ||
bu | String | Y | 50 | ||
vendor_code | Y | String | Y | 30 | 供应商编码 |
vendor_name | String | Y | 100 | 供应商名称,Lenovo根据Vendor Code自行mapping | |
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 | BOM生效时间 | ||
effective_end_date | Date(yyyy-mm-dd hh:mm:ss) | Y | BOM 失效时间 | ||
priority | Number | 13,3 | 替代物料优先级,对于不需要提供priority的commodity要求供应商填0 | ||
alternate_item_group | String | 50 | 替代组,Lenovo系统自动mapping | ||
split | Number | Y | 2,2 | 在BOM下的百分比,eg:0.2 | |
version | Y | String | Y | 8 | 版本号(yyyymmdd)eg:20211012 |
响应参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
code | String | Y | 0 成功其它失败 |
msg | String | Y | 响应具体信息 |
请求示例
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"
}
响应示例
json
{
"code":"0",
"msg":"request success"
}
异常示例
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}
业务错误码
错误码 | 错误描述 | 解决方案 |
---|---|---|
-1 | 数据验证失败 | 请根据 msg 调整 |