Skip to content

Location Mapping Data

This interface is applicable for data integration API, read Api Access Process first

FrequencyTimeData amount
Real Time0.00Daily

Request address

  • API
EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/odm/location_mapping
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/location_mapping
  • FTP
EnvironmentPartner directoryLenovo directoryFile 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

ParamKeyTypeRequiredLengthDescriptionExample
uidString32Unique id
odmYStringY40ODM nameWINGTECH
odm_locationYStringY40ODM storage locationMV001
location_descStringY100ODM storage location descripton
location_typeYStringY20ODM storage location typeunrestricted\inspection\Block
flagYStringY20is hub or odm storage locationVMI
statusStringY20Whether to be included in the calculation of ODM MRPActive\InActive
versionStringY14the location provide time as version, in format yyyyMMddHHmmss20220809070612

Response data description

ParamTypeDescription
codeString0: success, others:failed
msgStringthe 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"
        }]
    }]
}