Skip to content

LCFC Inventory monthly summary

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

FrequencyTimeData amount
TBDTBDIncremental

Request address

  • API
EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/sci/lcfc_inventory_monthly_summary
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/sci/lcfc_inventory_monthly_summary

Request data description

ParamkeyTypeRequiredLengthDescriptionExample
uidString32
MONTHString6
PERIODString7
QUARTERString6
COMPANY_CODEString4
PLANTString4
LENOVO_COMMODITYString50
DB_AVAP_KPString4
STOCK_BALANCENumber14,2
LNV_INV_VALUE_PUPNumber14,2
AGING_G90D_INVVALUE_STDNumber14,2
AGING_GREATERTHAN_270String30

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "batch_id": "20221123001",
  "batch_size": 10000,
  "seq_id": "1",
  "seq_size": 500,
  "data": [
    {
      "MONTH": "",
      "PERIOD": "",
      "QUARTER": "",
      "COMPANY_CODE": "",
      "PLANT": "",
      "LENOVO_COMMODITY": "",
      "DB_AVAP_KP": "",
      "STOCK_BALANCE": "",
      "LNV_INV_VALUE_PUP": "",
      "AGING_G90D_INVVALUE_STD": ""
    }
  ]
}

Successful response sample

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

Failed response sample

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