Skip to content

BPS & ETA

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

frequencytimedata amount
DailyBefore 15:30Daily version of data(full amount)
  • API
EnvURL
testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/ems/bps_eta
prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/ems/bps_eta

business data description

ParameterkeyField TypeField LengthRequired FieldDescriptionExample
buYString50YLenovo business unit, fixed values as shown in AppendixIdeaNB
emsYString40YODM nameDIXON
material_typeString10YDB/DS/BS, fixed values as shown in AppendixDB
commodityString100Yfixed values as shown in AppendixCable
familyString4000Ywhere-used family infoIP 3 14ADA05,IP 3 14IML05
ems_pnYString1000YEMS part numberSG11111
ems_pn_descString100YEMS part number descriptioncable
lenovo_pnString18Y for BS/DS
alternative_codeString50Yprocurement group/Alternative group, N/A for single source324111
vmi_bohNumber13,2available VMI stock10
bohNumber13,2available odm own inventory10
mo_shortageNumber13,2total MO shortage qty10
real_shortageString50Ytotal order shortage qty = current month+future order6
shortage_dateDateYshortage report generate date2022-07-20
current_monthInteger13Yshortage qty for order RSD within current month2
current_quarterInteger13Yshortage qty for order RSD within current quarter6
future_orderInteger13Yshortage qty for order RSD out of current month4
first_shortage_dateDate20Y2022-07-21
sub_commodityString100only for BS
reason_codeString150Yfixed values as shown in AppendixEOL
criticalString10Y/N, to mark materials with real missing risksN
bps_typeString10Yfixed value: FA/SMTSMT
remarkString200
gsm_ownerString50YLenovo GSM Owner
measure_listArrayY
measureYString10Yfixed value: BPS/ETABPS
date_listArrayY
dateYDateYshortage date, bucket 182days2022-07-21
date_qtyInteger10Yshortage qty100
versionYString14YData cutoff time, yyyyMMddHHmmss20220720070612
comment1String100
comment2String100

request sample

json
{
  "batch_id": "90397",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "bu": "IdeaNB",
      "ems": "DIXON",
      "material_type": "DB",
      "commodity": "Cable",
      "family": "IP 3 14ADA05,IP 3 14IML05",
      "ems_pn": "SG11111",
      "ems_pn_desc": "cable",
      "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": "324111",
      "vmi_boh":"10",
      "boh": "10",
      "mo_shortage": "10",
      "real_shortage": "6",
      "shortage_date": "2022-07-20",
      "current_month": "2",
      "current_quarter": "6",
      "future_order": "4",
      "first_shortage_date": "2022-06-19",
      "sub_commodity": "",
      "reason_code": "EOL",
      "critical": "N",
      "bps_type": "SMT",
      "remark": "",
      "gsm_owner": "",
      "version": "20220809070600",
      "comment1": "",
      "comment2": ""
    }
  ]
}

success response sample

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

failed response sample

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