Skip to content

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

Sample:/Planning/SCC/LCFC/odm/mwd_acc/mwd_acc_update_20220928123000_001

Request data description

TIP

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

ParamKeyTypeDefault requiredMDSC-TBLengthDescriptionExample
uidString32Unique id
fcst_versionYStringYY8yyyyMMdd20220711
odmYStringYY20LCFC
buYStringYY50MDSC-TB
siteStringYY50
odm_pnYStringYY50ODM part number
lenovo_pnYStringYY50Lenovo part number
project_nameString50ODM project name
familyYString4000lenovo project name
plcStringYY10product statusEOL
commodityStringYY100
item_descStringYY200item description
material_typeStringYY10material typeDB
alternative_codeStringYY200
moqIntegerYY10min order number
lead_timeIntegerYY10LT
quotation_priceNumberYY13.6price
lenovo_mwd_qtyIntegerYY10lenovo MWD quantity
lenovo_mwd_amtNumberYY13.6lenovo MWD amount
remarkString100
initial_submission_dateDateYY
usageIntegerYY10,2
vendorStringYY200
uniqueStringYY1Y
odm_plant_stockIntegerYY10ODM stock50000
non_cancel_poStringYY10none cancellable OPEN PO0
tire_2_non_cancel_poStringYY10ODM open po0
total_demandIntegerYY1030000
ttl_mwdIntegerYY1020000
last_version_mwd_qtyIntegerYY10MWD quantity of last version
last_version_mwd_amtNumberYY13.6MWD amount of last version
w2w_mwd_change_amtNumberYY13.6MWD amount change between this and last week
odm_mwd_qtyIntegerYY10ODM total MWD quantity
odm_mwd_amtNumberYY13.6ODM total MWD amount
comment1String100
comment2String100

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": [
    {
      "fcst_version": "2022711",
      "odm": "odm_1",
      "bu": "ACC",
      "site": "site_1",
      "odm_pn": "",
      "lenovo_pn": "lenovo_pn_1ni",
      "project_name": "",
      "family": "",
      "plc": "EOL",
      "commodity": "包材类",
      "item_desc": "中性通用封箱胶带",
      "material_type": "DB",
      "alternative_code": "12.34",
      "moq": "123",
      "lead_time": "20221012",
      "quotation_price": "1.23",
      "lenovo_mwd_qty": "123",
      "lenovo_mwd_amt": "12.3",
      "remark": "",
      "initial_submission_date": "20220915",
      "usage": "456",
      "vendor": "vendor-1",
      "unique": "Y",
      "odm_plant_stock": "50000",
      "non_cancel_po": "0",
      "tire_2_non_cancel_po": "0",
      "total_demand": "30000",
      "ttl_mwd": "20000",
      "last_version_mwd_qty": "123",
      "last_version_mwd_amt": "1234.32",
      "w2w_mwd_change_amt": "123.23",
      "odm_mwd_qty": "321",
      "odm_mwd_amt": "12.12",
      "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"
        }]
    }]
}