master_data 数据
以下接口适用于 通用数据集成
请求地址
- API
| 环境 | URL |
|---|---|
| 测试 | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/tn/master_data |
| 正式 | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/master_data |
- FTP
| 环境 | 合作伙伴 文件目录 | Lenovo 文件目录 | 文件名 |
|---|---|---|---|
| 测试 | /Planning/SCC/{appName}/tn/master_data/ | /Planning/SCC/{appName}/tn/master_data/feedback/ | master_data_{crud}_{yyyyMMddHHmmss}_ |
| 正式 | /Planning/SCC/{appName}/tn/master_data/ | /Planning/SCC/{appName}/tn/master_data/feedback/ | master_data_{crud}_{yyyyMMddHHmmss}_ |
请求参数
| 参数 | key | 必填 | 类型 | 长度 | 描述 |
|---|---|---|---|---|---|
| uid | String | 32 | 数据行唯一标识,存在按 uid 变更,不存在按 业务key 变更 | ||
| bu | Y | Y | String | 50 | 限定值,多个BU可以以/隔开上传 |
| vendor_code | Y | Y | String | 30 | 供应商编码 |
| vendor_name | Y | String | 100 | TN 供应商编码 | |
| odm_or_site | Y | Y | String | 200 | ODM名称为限定值,可以填NA |
| commodity | Y | Y | String | 100 | 物料类型 |
| component_category_spec | String | 200 | |||
| universality | String | 50 | 物料的通用性 | ||
| odm_pn | String | 200 | ODM 料号 | ||
| lenovo_pn | Y | Y | String | 200 | 联想物料号 |
| vendor_pn | Y | Y | String | 200 | 供应商物料号 |
| mpn | Y | String | 200 | 原厂料号 | |
| lead_time | Y | String | 50 | 采购提前期 | |
| unit_price_usd | Y | Number | 13,2 | 价格 | |
| moq | Y | Integer | 10 | mini order Qty | |
| spq_mpq | Y | Integer | 10 | mini packing Qty | |
| product_family | Y | String | 200 | 产品机型 | |
| usage | Y | Integer | 10 | 用量 | |
| split | Number | 13,2 | 采购比例 | ||
| ncnr_window | Y | String | 50 | NON-CANCELLATION_WINDOW | |
| production_lt | Y | String | 50 | 生产时间 | |
| tooling_weekly_max_capa | Y | String | 50 | 每周最大产出 | |
| fab_factory | String | 50 | 晶元厂 | ||
| fab_location | String | 50 | 物理位置 | ||
| fab_technical | String | 150 | 技术 | ||
| wafer_size | Integer | 10 | 尺寸 | ||
| at_factory | String | 50 | 封装厂 | ||
| at_location | String | 150 | 封装厂物理位置 | ||
| package_method | String | 50 | 封装方式 | ||
| package_size | String | 100 | 封装尺寸 | ||
| second_fab_location | String | 50 | 二级晶元厂 | ||
| second_at_location | String | 50 | 二级厂物理位置 | ||
| distributor | String | 50 | 代理商 | ||
| source_model | String | 50 | 采购模式 | ||
| supplier_model_name | String | 50 | |||
| sell_price | Number | 13,2 | |||
| nand_supplier | String | 50 | |||
| controller_supplier | String | 50 | |||
| die_size | Integer | 10 | |||
| layer | String | 50 | |||
| mp | String | 50 | |||
| ltb | String | 50 | |||
| material_type_tier | String | 50 | |||
| site | String | 20 | |||
| transition_lead_time | String | 50 | |||
| common_tooling | String | 50 | |||
| monthly_capacity | String | 50 | |||
| connector_factory_location | String | 50 | |||
| stamping_factory_location | String | 50 | |||
| molding | String | 50 | |||
| plating_factory_location | String | 50 | |||
| packing_type | Y | String | 50 | ||
| dram_supplier | String | 50 | |||
| fab_country | String | 50 | |||
| at_country | String | 50 | |||
| ccl_pp_factory | String | 50 | |||
| ccl_pp_location | String | 50 | |||
| ccl_pp_country | String | 50 | |||
| ccl_pp_technical | String | 50 | |||
| ccl_pp_pn | String | 50 | |||
| ccl_pp_factory2 | String | 50 | |||
| ccl_pp_location2 | String | 50 | |||
| ccl_pp_country2 | String | 50 | |||
| version | Y | String | 8 | 数据生成时间格式YYYYMMDD |
响应参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| code | String | Y | 0 成功其它失败 |
| msg | String | Y | 响应具体信息 |
请求示例
json
{
}响应示例
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 调整 |
