mwd
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/mwd |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/mwd |
- FTP
Environment | Partner directory | Lenovo directory | File name |
---|---|---|---|
Test | /Planning/SCC/{appName}/tn/mwd/ | /Planning/SCC/{appName}/tn/mwd/feedback/ | mwd_{crud}_{yyyyMMddHHmmss}_ |
Prod | /Planning/SCC/{appName}/tn/mwd/ | /Planning/SCC/{appName}/tn/mwd/feedback/ | mwd_{crud}_{yyyyMMddHHmmss}_ |
Request data description
Param | key | Type | Required | Length | Description |
---|---|---|---|---|---|
uid | String | 32 | unique id | ||
fcst_version | Y | String | Y | 8 | YYYYMMDD |
bu | Y | String | Y | 50 | |
commodity | String | Y | 100 | ||
technology_itemgroup | String | 20 | |||
vendor_code | Y | String | Y | 100 | |
vendor_name | String | Y | 200 | ||
lenovo_pn | String | Y | 200 | ||
mpn | Y | String | Y | 200 | origin manufacturing part no |
odm_or_t1_supplier | Y | String | Y | 20 | |
actual_mwd | String | Y | 20 | ||
unit_price | String | Y | 50 | ||
reason | String | Y | 200 | ||
moq | String | Y | 10 | mini order qty | |
owner | String | Y | 100 | ||
vendor_plant_stock | Integer | Y | 10 | ||
disty_stock | Number | Y | 10 | ||
noncancelable_po | Integer | 10 | |||
vendor_raw_materials | Integer | Y | 10 | ||
ttl_fcst_demand | Integer | Y | 10 |
Response data description
Param | Type | Required | Description |
---|---|---|---|
code | String | Y | 0:successful, other:failed |
msg | String | Y | message |
Request sample
json
{
}
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"
}]
}]
}