Skip to content

Tier1 MWD

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

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

FrequencyTimeTransfer modeKey
Weekly Monday00:10:00API,FTP,UI(upload)bu + site + pn + fcst_version + commodity +vendor_code

Request data description

ParamKeyTypeRequiredLengthDescriptionExample
uidString32
fcst_versionYStringY820230214
buYStringY50ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile TabletMobile Phone
vendor_codeYStringY30Vendor Code assigned by Lenovo2000009
vendor_nameStringN500
commodityYStringY100XX
technology_item_groupStringoption20BATTERY
sbbStringoption100Cylindrical cell
pnYStringY200SBB01D0001
pn_descStringY200SB1AD15220
alternativeStringoption20BATTERY, 4000mAh
siteYStringY50CC4mah01
actual_mwdIntegerY10LSSC
liability_windowIntegeroption131000
unit_priceNumberY13,691
raw_material_unit_priceNumberY13,691
sfg_unit_priceNumberY13,691
fg_unit_priceNumberY13,691
po_unit_priceNumberY13,691
vendor_rawmaterials_ttl_amountNumberY10,291
vendor_semi_fg_ttl_amountNumberY10,291
vendor_fg_ttl_amountNumberY10,291
vendor_open_po_tn_ttl_amountNumberY10,291
total_amountNumberY10,291
remarkStringY10001
suggested_first_timeDateoptionyyyy-MM-ddSCC需求减少
moqIntegerY101
ownerStringY1002000
usageStringY100Karl
vendor_plant_stockIntegerY101
noncancelable_poIntegerY10non cancellable PO2000
un_consumed_vmi_stockIntegeroption10Y for BU = MBG, VMI stock10000
family_statusStringY20
projectStringY200EOL
w2w_key_info_change_remarkStringY1000FLL40
vendor_raw_materialsIntegeroption10NA
vendor_semi_fgIntegeroption104000
vendor_fgIntegeroption105000
vendor_open_po_t_nStringoption206000
categoryStringoption1530000
ttl_fcst_demandIntegeroption10
hedge_demandIntegeroption1050000
stock_aging_dayStringoption5010000
sbb_typeStringoption501500
unique_materialStringY2Y\N is lenovo uniqueNA
material_typeStringY2DB/DS/BSN
vendor_pnStringoption30DB
mfg_pnStringoption30200-JK-10H
mfg_nameStringoption100
ttl_amountNumberN500020
last_version_qtyNumberN500020
last_version_ttl_amountNumberN1000
w2w_amount_changeNumberN-1000

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "batch_id": "100001",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "bu": "ThinkNB",
      "fcst_version": "xxxx",
      "vendor_code":"2022121"
      "commodity": "xxxx",
      "pn": "123",
      "pn_desc": "123321",
      "site": "L010",
      "actual_mwd": 10.1,
      "unit_price": 13.2,
      "remark": "巴拉巴拉",
      "moq": "10",
      "owner": "xxx",
      "usage": "18/22.2",
      "vendor_plant_stock": 10,
      "noncancelable_po": 10,
      "family_status": "123",
      "project": "123",
      "unique_material":"Y",
      "material_type":"DB",
      "w2w_key_info_change_remark": "ddd"
    }
  ]
}

Successful response sample

json
{
  "code": "0",
  "msg": "request success"
}

Failed response sample

json
{
    "code": "E00V00",
    "msg": "data verification failed!",
    "result": [{
        "row": {
            "bu": "xxxxxxxxxxxx",
            ...
        },
        "verify": [{
            "type": "value length exceed",
            "fields": "bu"
        }]
    }]
}