Skip to content

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

Sample:/Planning/SCC/LCFC/odm/mwd/mwd_update_20220928123000_001

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

Request data description

TIP

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

ParamKeyTypedefault requiredPCG-NBISGMBG-MobilePCG-DockingLengthDescriptionExample
uidString32Unique id
fcst_versionYStringYYYYY8version20220411
buYStringYYYYY50IdeaNB、ThinkNB、IdeaNB、ThinkDT、IdeaDT、Workstation;ISG/MBGThinkNB
commodityYStringYYYYY100Thermal/Hinge/ME-A COVER/CableN/A
technologyStringYY100N/A
familyStringYYYYY4000ALL
sbbStringYY30000SBB0U95167
lenovo_pnString50
odm_pnYStringYYYYY20SN20U63621
pn_descriptionStringYYYY100KB_2H-BC8_PRIMAX_SD_1D5_BL
alternativeString200
siteYStringYYYYY10Pondy I020 DT I021 NB;Brazil B510 DT B520 NB;Ullo E010;MTY X420 NB X410 DT;LSSC L220 TNB,;L215 LNB Zhaoyang;L210 TDT; L211 LDT;9116/9117/9118 PRC LDT;TJSC T220 LNBLCFC
odmYStringYYYYY10LCFC
actual_mwdIntegerYYYYY10119
liability_windowIntegerYYY1014
unit_price_fgiNumberYYYYY13,10
unit_price_sfgNumber13,10
unit_price_rawNumber13,1017.3
remarkString1000FCST DOWNSIDE+MOQ
suggested_first_timeDataYY2022-08-01
moqIntegerYYYYY10120
ownerStringYYYY100ODM_UPLOAD
usageNumberYYYYY10,101
odm_plant_stockIntegerYYYY100
noncancelable_poIntegerYYYY10ODM non cancellable PO quantity0
vender_raw_materialsIntegerYY10raw material quantity, should summed if there's multiple alternative material0
vender_semi_fgIntegerY10Semi-finished product quantity, should summed if there's multiple alternative material0
vender_fgIntegerYY10Finished product quantity, should summed if there's multiple alternative material0
categoryStringYYYY2BS/DS(Assign)/DB
family_statusStringYYYY10family status, EOL,Final lock,MP
ttl_fcst_demandIntegerYYYYY10forecast0
hedge_demandIntegerYY10Hedge forecast to calculate MWD version0
stock_aging_dayStringYY50Aging day0
sbb_typeStringYY50SBB descriptionL1 KYB
projectString4000Family break down
w2w_changeStringYYYY50changes between current and last week
versionStringYYYYY8version: yyyyMMdd
comment1String100
comment2String100

Response data description

ParamTypeDescription
codeString0: success, others:failed
msgStringthe detail message, especially useful on failure

Request sample

json
{
  "batch_id": "09229",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "fcst_version": "20220411",
      "bu": "ThinkNB",
      "commodity": "N/A",
      "technology": "N/A",
      "family": "ALL",
      "sbb": "SBB0U95167",
      "odm_pn": "SN20U63621",
      "pn_description": "KB_2H-BC8_PRIMAX_SD_1D5_BL",
      "alternative": "asdsdsssssssd",
      "site": "LCFC",
      "odm": "LCFC",
      "actual_mwd": "119",
      "liability_window": "14",
      "unit_price_fgi": "12.55",
      "unit_price_sfg": "12.55",
      "unit_price_raw": "12.55",
      "remark": "FCSTDOWNSIDE+MOQ",
      "suggested_first_time": "2019-09-23",
      "moq": "120",
      "owner": "ODM_UPLOAD",
      "usage": "1",
      "odm_plant_stock": "0",
      "noncancelable_po": "0",
      "vender_raw_materials": "0",
      "vender_semi_fg": "0",
      "vender_fg": "0",
      "category": "",
      "family_status": "final lock",
      "ttl_fcst_demand": "0",
      "hedge_demand": "0",
      "stock_aging_day": "0",
      "sbb_type": "L1KYB",
      "project": "",
      "w2w_change": "12312abc",
      "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"
        }]
    }]
}