Skip to content

LCFC Inventory git

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

Request data description

ParamkeyTypeRequiredLengthDescriptionExample
uidString32
MONTHString6
PERIODString7
QUARTERString6
COMPANY_CODEString4
PLANTString4
BILLING_QTYNumber7
BILLING_AMTNumber14,2
LENOVO_PART_NOString18
LCFC_PNString18
LENOVO_COMMODITYString50

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": "",
          "BILLING_QTY": "",
          "BILLING_AMT": "",
          "LENOVO_PART_NO": "",
          "LCFC_PN": "",
          "LENOVO_COMMODITY": ""
      }
  ]
}

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