Location Mapping Data
This interface is applicable for data integration API, read Api Access Process first
Frequency | Time | Data amount |
---|---|---|
Real Time | 0.00 | Daily |
Request address
- API
- FTP
Environment | Partner directory | Lenovo directory | File name |
---|---|---|---|
Test | /Planning/SCC/{appName}/odm/location_mapping/ | /Planning/SCC/{appName}/odm/location_mapping/feedback/ | location_mapping_{crud}_{yyyyMMddHHmmss}_ |
Prod | /Planning/SCC/{appName}/odm/location_mapping/ | /Planning/SCC/{appName}/odm/location_mapping/feedback/ | location_mapping_{crud}_{yyyyMMddHHmmss}_ |
Sample:/Planning/SCC/LCFC/odm/location_mapping/location_mapping_update_20220928123000_001
Note:if ODM agree there's different location type ,they should give the definition by Location+Location type,and if it's MRP available inventory
location_type flag status
unrestricted VMI Active-Storage locations participating in MRP calculations
inspection IN-ODM InActive-Storage locations that do not participate in MRP calculations
Block
Request Data Description
Param | Key | Type | Required | Length | Description | Example |
---|---|---|---|---|---|---|
uid | String | 32 | Unique id | |||
odm | Y | String | Y | 40 | ODM name | WINGTECH |
odm_location | Y | String | Y | 40 | ODM storage location | MV001 |
location_desc | String | Y | 100 | ODM storage location descripton | ||
location_type | Y | String | Y | 20 | ODM storage location type | unrestricted\inspection\Block |
flag | Y | String | Y | 20 | is hub or odm storage location | VMI |
status | String | Y | 20 | Whether to be included in the calculation of ODM MRP | Active\InActive | |
version | String | Y | 14 | the location provide time as version, in format yyyyMMddHHmmss | 20220809070612 |
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": "90397",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"odm": "Wingtech",
"odm_location": "adsd",
"location_desc": "sdfsdessd",
"location_type": "unrestricted",
"flag": "VMI",
"status": "Active",
"version": "20220809070600"
}
]
}
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"
}]
}]
}