MO Data
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/odm/mo |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/mo |
- FTP
Environment | Partner directory | Lenovo directory | File name |
---|---|---|---|
Test | /Planning/SCC/{appName}/odm/mo/ | /Planning/SCC/{appName}/odm/mo/feedback/ | mo_{crud}_{yyyyMMddHHmmss}_ |
Prod | /Planning/SCC/{appName}/odm/mo/ | /Planning/SCC/{appName}/odm/mo/feedback/ | mo_{crud}_{yyyyMMddHHmmss}_ |
Sample:/Planning/SCC/LCFC/odm/mo/mo_update_20220928123000_001
Frequency | Time | Data amount |
---|---|---|
Daily | Daily | Increment/Full |
Request data description
Param | Key | Type | Required | MDSC-TB | Length | Description | Example |
---|---|---|---|---|---|---|---|
uid | String | 32 | unique id | ||||
bu | Y | String | Y | Y | 40 | MDSC-TB | |
odm | Y | String | Y | Y | 40 | odm | LCFC |
mo | Y | String | Y | Y | 20 | mo number:Includes PO and MO provided by ODM to EMS | |
odm_pn | Y | String | Y | Y | 20 | ODM part number | |
odm_pn_desc | String | Y | Y | 200 | odm part number description | ||
lenovo_pn | String | Y | Y | 18 | lenovo part number | ||
commodity | String | Y | 50 | ||||
mo_qty | Integer | Y | Y | 10 | mo quantity | ||
finish_qty | Integer | Y | Y | 10 | mo received quantity | ||
creation_date | Date | Y | Y | mo create time(yyyy-MM-dd HH:mm:ss) | |||
release_date | Date | Y | Y | mo release time(yyyy-MM-dd HH:mm:ss) | |||
gr_date | Y | Date | Y | Y | mo received date | ||
gr | Y | String | Y | Y | 50 | ||
location | String | Y | v | 20 | mo produce location | ||
type | String | Y | Y | 20 | MO Or PO | ||
system_date | Date | Y | Y | system time(yyyy-MM-dd HH:mm:ss) | |||
version | Y | String | Y | Y | 14 | version(yyyyMMddHHmmss) | |
comment1 | String | 100 | reserved field | ||||
comment2 | String | 100 | reserved field |
Response data description
Param | Type | Description |
---|---|---|
code | String | 0: success, others:failed |
msg | String | the detail message, especially useful on failure |
Request sample
json
{
"batch_id": "90497",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"uid": "20220801",
"odm": "abc",
"bu": "ACC",
"mo": "项目名称",
"odm_pn": "odm_pn1",
"odm_pn_desc": "odm_pn_desc1",
"lenovo_pn": "lenovo1",
"commodity": "commodity1",
"mo_qty": "123",
"finish_qty": 123,
"creation_date": "2022-12-01 00:00:00",
"release_date": "2022-12-02 23:00:00",
"gr_date": "2022-12-05",
"location": "factory location",
"type": "MO",
"system_date": "2022-12-01 23:23:23",
"version": "20220801090100",
"comment1": "",
"comment2": ""
}
]
}
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"
}]
}]
}