Skip to content

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

Sample:/Planning/SCC/LCFC/odm/bps_eta/bps_eta_update_20220928123000_001

FrequencyTimeData amount
DailyBefore 15:30Daily 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-DTSmart DevicePCG-DockingMDSC-TBLengthDescriptionExample
uidString32Unique id
buYStringYYYYYYY50BU -fix value, refer to appendixIdeaNB
odmYStringYYYYYYY40ODM -fix value, refer to appendixLCFC
material_typeStringYYYYYYY10BS/DS/DBDB
commodityStringYYYYYYY100
familyStringYYYYYYY4000whereuse family
odm_pnYStringYYYYYYY1000ODM part number
odm_descStringYYYYYYY100ODM part number descripton
measure_listListYYYYYYYmeasure collection
measureYStringYYYYYYY10BPS/ETA
lenovo_pnStringY for DSY for DSY for BSY for DSY for DSY for DSY for DS18Lenovo part numberBS
alternative_codeStringYYYYYYY50Alternative group, N/A for single sourceMPN
vmi_bohNumber13,2The inventory of available VMI for the missing material
bohNumber13,2Available inventory in the ODM factory for short materials11.23
mo_shortageNumber13,2Total material gap issued by the ODM work order (positive value represents the quantity of missing materials, negative number represents the balance, both are needed)
real_shortageStringYYYYYYY50current month+Future order
shortage_dateDateYYYYYYYshortage report time2022-07-21
current_monthIntegerYYYYYYY13
current_quarterIntegerYYYYYYY13
future_orderIntegerYYYYYYY13
first_shortage_dateDateYYYYYY20first shortage date2022-07-21
sub_commodityString100only for BS
reason_codeStringYYYYYYY150fix value-refer to appendix
criticalString10Y or N Identify the material groups to focus on (upload the missing materials items every day, identify the materials that are really at risk, and mark them)
bps_typeStringYYYYY10FA/SMT
remarkString200
gsm_ownerStringYY50LNV GSM Owner
date_listListYYYYYYYCollection of date and date quantity
dateYDateYYYYYYdate: 2022-07-212022-07-21
date_qtyIntegerYYYYYY10date quantity20220721
versionYStringYYYY14version: yyyyMMddHHmmss20220809070612
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": [
    {
      "bu": "IdeaNB",
      "odm": "LCFC",
      "material_type": "DB",
      "commodity": "M_OTHER",
      "family": "V14-ITL,V15-ITL,E14_4_MERCURY,E15_4_MARS",
      "odm_pn": "PK37B00K100",
      "odm_desc": "odm description",
      "measure_list": [
        {
          "measure": "BPS",
          "date_list": [
            {
              "date": "2022-01-09",
              "date_qty": "100"
            },
            {
              "date": "2022-01-10",
              "date_qty": "100"
            }
          ]
        },
        {
          "measure": "ETA",
          "date_list": [
            {
              "date": "2022-01-09",
              "date_qty": "100"
            }
          ]
        }
      ],
      "lenovo_pn": "4X40T84060",
      "alternative_code": "MPN",
      "vmi_boh":"12.33",
      "boh": "23.13",
      "mo_shortage": "",
      "real_shortage": "511",
      "shortage_date": "2022-06-19",
      "current_month": "123.45",
      "current_quarter": "2",
      "future_order": "3600",
      "first_shortage_date": "2022-06-19",
      "sub_commodity": "",
      "reason_code": "test",
      "critical": "Y",
      "bps_type": "FA",
      "remark": "",
      "gsm_owner": "",
      "version": "20220809070600",
      "comment1": "",
      "comment2": ""
    }
  ]
}

Successful response sample

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

Failed response sample

json
{
  "code": "-1",
  "msg": "data verification failure"
}