Skip to content

MWD (Docking) Data

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

FrequencyTimeData amount
WeeklyBefore 17:00 for WednesdayWeekly version of data (full amount)

Request address

  • API
EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/odm/mwd_docking
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/mwd_docking
  • FTP
EnvironmentPartner directoryLenovo directoryFile name
Test/Planning/SCC/{appName}/odm/mwd_docking//Planning/SCC/{appName}/odm/mwd_docking/feedback/mwd_docking_{crud}_{yyyyMMddHHmmss}_
Prod/Planning/SCC/{appName}/odm/mwd_docking//Planning/SCC/{appName}/odm/mwd_docking/feedback/mwd_docking_{crud}_{yyyyMMddHHmmss}_

Sample:/Planning/SCC/LCFC/odm/mwd_docking/mwd_docking_update_20220928123000_001

Request data description

TIP

Note: field requirements are different on bu, please refer to the following table

ParamKeyTypedefault requirdLengthDescriptionExample
uidString32Unique id
risk_levelString8Lower
odmYStringY20LCFC
odm_codeStringY20odm trade code
buYStringY18MDSC-TB
siteYStringY50
lenovo_pnYStringY50lenovo part number
commodityStringY100
item_descStringY200item description
fcst_versionYStringY10020220711
fcst_qtyIntegerY10liability window forecast quantity
max_demand_versionStringY40
max_demand_qtyIntegerY5liability window
actualize_qtyIntegerY5
moqIntegerY10min order quantity
mpqIntegerY10min package quantity
fg_lead_timeIntegerY10
liability_ltStringY200DOI/In transit
boh_soiIntegerY10
in_transitIntegerY10
mfg_gfIntegerY10
wipIntegerY10
square_setStringY50
non_square_excess_qtyIntegerY10
lenovo_own_total_qtyIntegerY10SOI+In transit+MFG FG+WIP+square-set+non-sqaure excess qty
square_mwd_qtyIntegerY10(SOI+In transit+MFG FG+WIP+Square set)-fcst qty
total_mwd_qtyIntegerY10(SOI+In transit+MFG FG+WIP+Square set+Non-square excess qty)-fcst qty
fg_unit_priceNumberY13.2price($)
square_mwd_amtNumberY13.2square mwd qty*fg unit price
total_mwd_amtNumberY13.2square_mwd_amt+non-sqaure amt+llt_excess amt
lenovo_square_amtNumberY13.2SOI+In transit+MFG FG+WIP+Square set)*fg unit prcie
non_square_amtNumberY13.2Non square excess within liability amt $
llt_moq_excess_amtNumberY13.2LLT excess out of liability amt $
odm_own_liability_qtyInteger10ODM afford excess quantity
odm_own_liability_amtNumber13.2ODM afford excess amount($)
remarkString100remark
gsm_ownerStringY30
comment1String100reserved field
comment2String100reserved field

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": [{
    "uid": "",
    "risk_level": "",
    "odm": "LCFC_test",
    "odm_code": "test_code",
    "bu": "MDSC-TB",
    "site": "site_test",
    "lenovo_pn": "lenovo_pn_1",
    "commodity": "atype",
    "item_desc": "some description",
    "fcst_version": "20220711",
    "fcst_qty": "12",
    "max_demand_version": "12",
    "max_demand_qty": "12",
    "actualize_qty": "32",
    "moq": "12",
    "mpq": "34",
    "fg_lead_time": "2",
    "liability_lt": "123",
    "boh_soi": "12",
    "in_transit": "34",
    "mfg_gf": "12",
    "wip": "13",
    "square_set": "abc123",
    "non_square_excess_qty": "12",
    "lenovo_own_total_qty": "34",
    "square_mwd_qty": "12",
    "total_mwd_qty": "23",
    "fg_unit_price": "10.02",
    "square_mwd_amt": "17.34",
    "total_mwd_amt": "12.25",
    "llt_moq_excess_amt": "12.2",
    "lenovo_square_amt": "11.21",
    "non_square_amt": "3.08",
    "llt_excess_amt": "4.23",
    "odm_own_liability_qty": "23",
    "odm_own_liability_amt": "11.67",
    "remark": "remark_remark",
    "gsm_owner": "owner_abc",
    "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"
        }]
    }]
}