Skip to content

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

Request data description

FieldkeyTypeRequiredLengthDescriptionExample
buYStringY50ThinkNB/IdeaNB/ThinkDT/IdeaDTIdeaNB
site_idYStringY50factory’s nameWISTRON
lenovo_pnYStringY20Lenovo MaterialSA10R16924
odm_pnString50ODM MaterialSA10R16924
pn_descString200Material descriptionAC_ADAPTER Liteon slim 135W 3P
familyStringY50modelEXCESS
supplier_idYStringY50Vendor code1000063611
supplier_descStringY200Supplier's DescriptionLITEONTECHNOLOGYCORPORATION
source_flagYStringY20Data sourceWW
item_groupStringY500purchase group nameAdapter Rectangle Slim 135W 3Pin
bps_for_supplierInteger10shortages0
ttl_onsdecimal22,20
cq_rol_dayStringY202024-09-26
mrp_soiInteger10Supplier stock at zero on Thursday0
mrp_ooiInteger10ODM stock at zero on Thursday6
hub_soiInteger10HUB Stock(daily)0
plant_qhold_stockInteger10Frozen stock in the factory0
hub_qhold_soiInteger10Frozen stock in the HUB0
mrp_intransitInteger10On the way until MRP confirmed0
w2w_change_13wksIntegerY10Last week vs current week-1215
current_quarter_ttlIntegerY10current quarter total demand7857
next_quarter_ttlIntegerY10next quarter total demand4101
this_week_liability_cumIntegerY10liability for current week1215
last_week_liabilityIntegerY10liability for last week0
parts_ownerString100Parts ownerzhangliu7/zhangcf2/linchen2/xuyt17
remarkString500
lw_actual_grInteger200Last week actual Good receive0
totalIntegerY10forecast/commit qty1000
eff_start_dateStringY10Data start date or Supply start date(Thursday) Format: yyyy-mm-dd
measure_listListYmeasure collection
measureStringY20Identifies different types of dataCommit
dateStringY10The first word is date, and the value is the specific date: 2022-07-21; Format: yyyy-mm-dd2024-08-01
date_qtyIntegerY10Qty32
versionStringY8The date the data was sent (20240801)
comment1String100Reserve fields for later use and can now be emptied
comment2String100Reserve fields for later use and can now be emptied

Response data description

FieldTypeRequiredDescription
codeStringY0:successful, others: failed
msgStringYsuccess or summary error message
resultListYindicates error data

Request sample

json
{
  "batch_id": "1000001",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data":[{
      "bu": "IdeaNB",
      "site_id": "WISTRON",
      "lenovo_pn": "SA10R16924",
      "odm_pn": "SA10R16924",
      "pn_desc": "AC_ADAPTER",
      "family": "EXCESS",
      "supplier_id": "1000063611",
      "supplier_desc": "LITEONTECHNOLOGYCORPORATION",
      "source_flag": "WW",
      "item_group": "Adapter Rectangle Slim 135W 3Pin",
      "bps_for_supplier": 0,
      "ttl_ons": 0.12,
      "cq_rol_day": "2024-09-26",
      "mrp_soi": 0,
      "mrp_ooi": 6,
      "hub_soi": 0,
      "plant_qhold_stock": 0,
      "hub_qhold_soi": 0,
      "mrp_intransit": 0,
      "w2w_change_13wks": -1215,
      "current_quarter_ttl": 7857,
      "next_quarter_ttl": 4101,
      "this_week_liability_cum": 1215,
      "last_week_liability": 0,
      "parts_owner": "zhangliu7/zhangcf2/linchen2/xuyt17",
      "remark": "",
      "lw_actual_gr": 0,
      "total": 1000,
      "eff_start_date": "2024-08-01",
      "measure_list": [
        {
          "measure": "Commit",
          "date": "2024-08-01",
          "date_qty": 32
        },
        {
          "measure": "Commit",
          "date": "2024-08-02",
          "date_qty": 22
        }
      ],
      "version": "20240801",
      "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"
        }]
    }]
}