Skip to content

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

Sample:/Planning/SCC/LCFC/odm/demand_supply/demand_supply_update_20220928123000_001

FrequencyTimeData amount
Weekly1st version Before 18:00 for Mon
2nd version Before 12:00 for Tue
Final version Before 18:00 Tue
Weekly version of data(full amount)

Request data description

TIP

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

ParamKeyTypedefault requiredPCG-NBISGPCG-DTMDSC-TBSmart DevicePCG-DockingLengthDescriptionExample
uidString32Unique id
fcst_versionYStringYYYYYYY8forecast versionrelease FCST monday,like 20230313
buYStringYYYYYYY50business unitThinkNB
siteYStringY50Comes from the site name when ODM receives FCSTL215/9118
odmYStringYYYYYYY40odm nameLCFC
familyStringYYYYYYY6000product family-needs to be consistent with the standard name of Lenovo system release FCSTY70/X200/T14S_2_TIGER/T14S_2_TIGER_AMD
upper_materialStringYYYYYYY20000Multiple entries can be entered in one line, separated by ‘/’ (For NB SBB)XXX/XXXX/XX
commit_typeYStringYYYYYYY10Box1,Box,Part,Part1Part
material_typeStringYY10DB/DS/BS
commodityStringYYYYYYY50ME-D Cover
odm_pnYStringYYYYYYY1000ODM part number descriptionAM1U8000300
odm_pn_descStringYYYYYYY100ODM part number descriptionHX4B0_D_COVER_ASSY_WLAN_AL
usageString1000PN 在MTM中的用量5/4/3/2
lenovo_pnStringYY for DSY for BS/DSY for DSY for DSY for DSY for DS100Lenovo part number
mfg_pnStringYY200Manufacturing part numberZZZ
odm_supplier_nameYStringYYYYYYY2000SUPPLIER Name、AgentKCS/Foxconn
alternative_codeStringYYYYYYY50alternative group code, if single source,fill N/A
boh_ooi_rawNumberYYYYYY10,2raw material inventory
boh_ooi_sfgIntegerYYYYYYY10semi-finished product inventory
boh_ooi_fgIntegerYYYYYYY10finished product inventory
boh_vmiIntegerYYYYYY10raw material inventory in ODM hub90
otwIntegerYY10one the way
booking_qtyIntegerYYYYYYY101.PO triggered quantity .for VMI parts use forecast for booking60000
lead_timeIntegerYYYYYY10lead time13
measure_listListYYYYYYY
measureYStringYYYYYY20Identify different types of dataDemand
eff_start_dateDateYYYYYY20effective start time2022-01-01
date_listListYYYYYYYcollection of date and date quantity
dateYDateYYYY2022-07-21, if weekly, should be first day of the week2022-01-01
date_qtyIntegerYYYYYYY10date quantity2022-01-01
remarkString200
versionString14version20220801060912
comment1String100
comment2String100

Response data description

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

Request sample

json
{
  "batch_id": "11297",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "bu": "ThinkNB",
      "site": "",
      "odm": "LCFC",
      "family": "Y70/X200/T14S_2_TIGER/T14S_2_TIGER_AMD",
      "upper_material": "XXX/XXXX/XX",
      "commit_type": "Part",
      "material_type": "DS",
      "commodity": "ME-D Cover",
      "odm_pn": "AM1U8000300",
      "odm_pn_desc": "HX4B0_D_COVER_ASSY_WLAN_AL",
      "lenovo_pn": "lenovo_pn_1",
      "mfg_pn": "ZZZ",
      "odm_supplier_name": "KCS/Foxconn",
      "alternative_code": "alternative_code_1",
      "boh_ooi_raw": "40",
      "boh_ooi_sfg": "1",
      "boh_ooi_fg": "2",
      "boh_vmi": "90",
      "otw": "34",
      "booking_qty": "60000",
      "lead_time": "13",
      "measure_list": [
        {
          "measure": "Demand",
          "date_list": [
            {
              "date": "2022-09-14",
              "date_qty": "100"
            },
            {
              "date": "2022-09-15",
              "date_qty": "100"
            }
          ]
        },
        {
          "measure": "Commit",
          "date_list": [
            {
              "date": "2022-09-14",
              "date_qty": "100"
            }
          ]
        }
      ],
      "eff_start_date": "2021-09-07",
      "remark": "",
      "version": "",
      "comment1": "",
      "comment2": ""
    }
  ]
}

Success response sample

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

Fail response sample

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