Skip to content

Demand & Supply

This interface is applicable for data integration API, read Api Access Process first

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)
  • API
EnvURL
testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/ems/demand_supply
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/ems/demand_supply

business data description

FieldkeyField typeField LengthDixon Required FieldLCFC Required FieldDescriptionExample
fcst_versionYString8YY, copyFcst version, the Monday of the week when LNV publish box/sbb demand20230313
buYString50YY, copyLenovo business unit, follow the BU data received in LNV box/sbb demandThinkNB
siteYString50YY, copyDIXONDIXON
odmYString40YY, copyDIXONLCFC
familyYString6000YY, copyFAMILY1, match with Lenovo Box demand infoT14S_2_TIGER
upper_materialString20000YY, copySBB1/SBB2/…SBB1/SBB2/…
commit_typeYString10N/A - for demand publish to LCFC. Y - for the Commit(ETA) provide to LNV.YPART: indicate the part has no risk. Dixon can expect there's no shortage for the part should the demand pull in / upside.PART1: indicate the part has risk of shortage. Dixon need to use the exact supply feedback to run its later planning process.MB: the MB suppply plan provided by Dixon. MUST be considered in LNV box commit.Part
material_typeString10YY, copyFollow material master data definition: DB/DS/SFG
commodityString50N/AYFollow material master data definitionME-D Cover
ems_pnYString1000YY, copyEMS PNAM1U8000300
ems_pn_descString100YY, copyEMS PN DescriptionHX4B0_D_COVER_ASSY_WLAN_AL
lenovo_pnString100YY, copyLenovo PN
mfg_pnString200YManufacturer Part Number
odm_supplier_nameYString2000LCFCY, copyODM Original supplier
alternative_codeString50YYLCFC provide unique identification based on the PNs covered - dynamic changing every time.34840
boh_ooi_rawNumber10,2YY, copyDBDS parts inventory at the time of LNV MRP snap make whole the demand/supply scope, all including the WIP.
boh_ooi_sfgInteger10YY, copySFG parts inventory at the time of LNV MRP snap make whole the demand/supply scope, all including the WIP.
boh_ooi_fgInteger10YY, copyFG parts inventory at the time of LNV MRP snap make whole the demand/supply scope, all including the WIP.
boh_vmiInteger100
otwInteger10YY, copyon the way. Intransit qty at the time of LNV MRP snap.
booking_qtyInteger100
lead_timeInteger100
eff_start_dateDate10Data cutoff date2022-01-01
measure_listArrayYY
measureYString20YYDemand (Dixon→LCFC) ETD (LCFC→ Dixon) ETA (Dixon → LNV)Demand
date_listArrayYY
dateYDateYYDemand date or supply date - depending on the scenario.2022-01-01
date_qtyInteger10YYDemand qty or supply qty.100
remarkString200
versionString14YYDixon/LCFC system auto generated timestamp.20220800000000
comment1String100
comment2String100

request sample

json
{
	"batch_id": "90497",
	"batch_size": 1,
	"seq_id": "1",
	"seq_size": 1,
	"data": [{
		"fcst_version": "20230313",
		"bu": "ThinkNB",
		"site": "DIXON",
		"odm": "DIXON",
		"family": "T14S_2_TIGER",
		"upper_material": "SBB1",
		"commit_type": "Part",
		"material_type": "DB",
		"commodity": "ME-D Cover",
		"ems_pn": "AM1U8000300",
		"ems_pn_desc": "HX4B0_D_COVER_ASSY_WLAN_AL",
		"lenovo_pn": "LE2T8300301",
		"mfg_pn": "MFGU8202601",
		"odm_supplier_name": "KCS",
		"alternative_code": "AM2U8000301",
		"boh_ooi_raw": "40",
		"boh_ooi_sfg": "1",
		"boh_ooi_fg": "2",
		"boh_vmi": "90",
		"otw": "34",
		"booking_qty": "6000",
		"lead_time": "13",
		"measure_list": [{
			"measure": "Demand",
			"date_list": [{
					"date": "2022-01-01",
					"date_qty": "100"
				},
				{
					"date": "2022-01-02",
					"date_qty": "100"
				}
			]
		}],
		"remark": "",
		"version": "20220800000000",
		"comment1": "",
		"comment2": ""
	}]
}

success response sample

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

failed response sample

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