Skip to content

LCFC Inventory provision

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

Request data description

ParamkeyTypeRequiredLengthDescriptionExample
uidString32
MONTHString6
PERIODString7
QUARTERString6
COMPANY_CODEString4
PLANTString4
LENOVO_COMMODITYString50
LNV_VALUENumber14,2
AGING_GREATERTHAN_270String30
AGING_GREATERTHAN_90String30

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": [
    {
      "uid": "YIASND190123NYC1N290D1N21S2129JX",
      "lenovo_pn": "SC50Q71377",
      "version": "20220801"
    }
  ]
}

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