Skip to content

MWD (DT) 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_dt
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/mwd_dt
  • FTP
EnvironmentPartner directoryLenovo directoryFile name
Test/Planning/SCC/{appName}/odm/mwd_dt//Planning/SCC/{appName}/odm/mwd_dt/feedback/mwd_dt_{crud}_{yyyyMMddHHmmss}_
Prod/Planning/SCC/{appName}/odm/mwd_dt//Planning/SCC/{appName}/odm/mwd_dt/feedback/mwd_dt_{crud}_{yyyyMMddHHmmss}_

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

Request data description

ParamKeyTypeRequiredLengthDescriptionExample
uidString32Unique id
siteYStringY50ODM or Lenovo inhouse plantAVC/9116/X410
buYStringY50IdeaDT, ThinkDT, DTIdeaDT/ThinkDT/DT
projectStringY400Main MWD driven familyM838Z/M930Z/A960
familyString400MWD PN Used onM838Z/M930Z/A960
sbbString1000SBB NumberSBB1/SBB2/SBB3/..
item_groupString100Procurement Item Group in JDA maintained by each GSM
odm_pnYStringY50ODM part numberPN1
lenovo_pnStringY1000Lenovo part numberPN1/PN2/PN3
supplierString50MWD supplierTI
categoryStringY2BS/DS/DBDB/DS/BS
commodityStringY100Need follow tierN master dataPlanar
descriptionStringY300material descriptionABCD
usageStringY13.2BOM usage1
lead_timeIntegerY10Material lead time by week8
ncnr_windowStringY10CANCELLATION_WINDOW8
moqIntegerY10min order num10000
eolstring5whether eolN/Y
fcst_versionYStringY8MWD refered FCST version (like9/21)20221216
first_hl_weekStringY8ODM firstly claim MWD date yyyyMMdd20221104
agingweeksnumber13.2Weeks that MWD had been in aging6
odmplant_stocknumber13.2Material inventory quantity in ODM1000
noncancellable_ponumber13.2none cancellable quantity2000
fgnumber13.2Parts FG inventory in sub-tier suppliers0
wipnumber13.2Parts WIP in sub-tier suppliers0
rawmaterialsnumber13.2Raw materials in sub-tier suppliers2000
total_qtynumber13.2total quantity3000
demandnumber13.2Lenovo net demand on the MWD parts0
total_mwd_qtynumber13.2mwd quantity3000
lenovoowned_mwd_qtynumberY13.23000
odmowned_mwd_qtynumber13.20
lastwk_lenovoowned_mwd_qtynumber13.21000
variancenumber13.22000
unit_pricenumberY13.4Unit Price35
total_amountnumber13.4105000
lenovoowned_mwdnumber13.2105000
odmowned_mwdnumber13.20
demand_peak_weekStringY8yyyyMMdd20221021
remarkString1000Reason or any other commentDemand downside
odmYStringY20ODM nameLCFC
parts_ownerYStringY100Parts Owner

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":"",
    "site":"AVC/9116/X410",
    "bu":"IdeaDT",
    "project":"M838Z",
    "family":"M838Z",
    "sbb":"SBB1",
    "item_group":"",
    "odm_pn":"PN1",
    "lenovo_pn":"PN1",
    "supplier":"TI",
    "category":"DB",
    "commodity":"Planar",
    "description":"ABCD",
    "usage":"1",
    "lead_time":"8",
    "ncnr_window":"8",
    "moq":"10000",
    "eol":"N",
    "fcst_version":"20221216",
    "first_hl_week":"20221104",
    "agingweeks":"6.34",
    "odmplant_stock":"1000",
    "noncancellable_po":"2000",
    "fg":"0",
    "wip":"0",
    "rawmaterials":"2000",
    "total_qty":"3000",
    "demand":"0",
    "total_mwd_qty":"3000",
    "lenovoowned_mwd_qty":"3000",
    "odmowned_mwd_qty":"0",
    "lastwk_lenovoowned_mwd_qty":"1000",
    "variance":"2000",
    "unit_price":"35",
    "total_amount":"105000",
    "lenovoowned_mwd":"105000",
    "odmowned_mwd":"0",
    "demand_peak_week":"20221021",
    "remark":"Demand downside",
    "odm": "ECS",
    "parts_owner": "chenww10"
  }]
}

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"
        }]
    }]
}