Skip to content

MO Data

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

Request address

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

FrequencyTimeData amount
DailyDailyIncrement/Full

Request data description

ParamKeyTypeRequiredMDSC-TBLengthDescriptionExample
uidString32unique id
buYStringYY40MDSC-TB
odmYStringYY40odmLCFC
moYStringYY20mo number:Includes PO and MO provided by ODM to EMS
odm_pnYStringYY20ODM part number
odm_pn_descStringYY200odm part number description
lenovo_pnStringYY18lenovo part number
commodityStringY50
mo_qtyIntegerYY10mo quantity
finish_qtyIntegerYY10mo received quantity
creation_dateDateYYmo create time(yyyy-MM-dd HH:mm:ss)
release_dateDateYYmo release time(yyyy-MM-dd HH:mm:ss)
gr_dateYDateYYmo received date
grYStringYY50
locationStringYv20mo produce location
typeStringYY20MO Or PO
system_dateDateYYsystem time(yyyy-MM-dd HH:mm:ss)
versionYStringYY14version(yyyyMMddHHmmss)
comment1String100reserved field
comment2String100reserved field

Response data description

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