Skip to content

Excess Report

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/excess_report
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/excess_report

Request data description

FieldKeyTypeLengthRequiredDescriptionRemark
fcst_versionYString8Yversion
odmYString10YODM code
commodityString100Ycommodity should be same on same type parts,e.g. Thermal/Hinge/ME-A COVER/Cable等
sbbString30000All SBBs corresponding to the parts,Multiple SBBs must be separated by / and cannot have spaces or other symbols.
familyString4000All machine models that use the reported excess parts or its substitute parts. Multiple Families must be separated by / and cannot have spaces or other symbols.
odm_pnYString20YThe actual reported part number
pn_descriptionString100YDetailed description of reported excess partno
supplier_nameString50
mfg_pnString100manufacturing part no
lenovo_pnstring50YLenovo Parts level material number (BS materials)NA
usageNumber10.6Usage of excess materials in SBB
liability_windowInteger10YExcess material's liability window, not preparation time of parts,Each version must be consistent and cannot be changed at will.
unit_price_fgiNumber13.10YThe finished product unit price of the excess material (use $), if the same material is inconsistent due to supplier or unit price, take the maximum value
unit_price_sfgNumber13.10price of excess semi-finished goods
unit_price_rawNumber13.10price of excess raw materials
lead_timeInteger10units:weeks
moqInteger10The minimum order or stocking quantity of excess materials.Default is 0. Each version must be consistent and cannot be changedThe maximum value in the alternative group for merged submissions
alternativeString1000Yalternative materials, if none set to NANA
first_highlight_weekString20YThe time when the excess materials first appears in the MWD reportformat:MM/DD/YYYY,For example, an excess material based on wk6/3 FCST, but report to Lenovo on wk6/17 first time
odm_plant_stockInteger10ODM plant stock quantity
noncancellable_poInteger20ODM non cancellable PO quantity
vendor_fgInteger20quantity of vendor's finished goods
vendor_semi_fgInteger10quantity of vendor's semi finished goods
vendor_raw_materialsInteger10quantity of vendor's raw materials
material_typeString15Ymaterial type, BS/DS(Assign)/DB/RBfix value,DS/DB
actual_mwd_qtyInteger10Yactual MWD
eolString2EOL partsY/N;All models must be EOL before they can be marked as EOL.(parts EOL)
remarkString200

Response data description

FieldTypeDescription
codeString0: success, others:failed
msgStringthe detail message, especially useful on failure
resultArrayresponse data, verified failed data

Request sample

json
{
  "batch_id": "90397",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "fcst_version": "20240916",
      "odm": "LCFC",
      "commodity": "Thermal",
      "sbb": "",
      "family": "",
      "odm_pn": "SM1210322",
      "pn_description": "",
      "supplier_name": "battery",
      "mfg_pn": "abc123",
      "lenovo_pn": "adfs",
      "usage": 0.12,
      "liability_window": 12,
      "unit_price_fgi": 0.1,
      "unit_price_sfg": 0.2,
      "unit_price_raw": 0.3,
      "lead_time": 11,
      "moq": 12,
      "alternative": "SDk32344",
      "first_highlight_week": "09/20/2014",
      "odm_plant_stock": 123,
      "noncancellable_po": 23,
      "vendor_fg": 12,
      "vendor_semi_fg": 22,
      "vendor_raw_materials": 10,
      "material_type": "BS",
      "actual_mwd_qty": 10,
      "eol": "Y",
      "remark": "remark any thing"
    }  
  ]
}

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"
        }]
    }]
}