Skip to content

Tier1 Inventory

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

Sample :/Planning/SCC/LCFC/t1/inventory/inventory_update_20220928123000_001

FrequencyTimeTransfer mode
Daily or Real time0:00:00Daily version of data (full amount)

FrequencyTimeTransfer modeKey
Weekly Monday00:10:00API,FTP,UI(upload)bu + vendor_code + vendor_pn

Request data description

ParamkeyTypeRequiredLengthDescriptionExample
uidString32
buYStringY50ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile TabletThinkNB
vendor_codeYStringY30
vendor_nameStringoption500
vendor_pnYStringY200
lenovo_pnStringoption200
locationStringoption200
location_descStringoption100
vendor_qtyIntegerY10ME-D Cover
vendor_hub_qtyIntegerY101
lenovo_vmi_inventoryInteger10
poIntegeroption10PO
unrestricted_qtyIntegeroption10Valuated Unrestricted-Use Stock1
inspection_qtyIntegeroption10inspection qty1
block_qtyIntegeroption101
open_po_qtyIntegeroption10OPEN PO1
available_to_allocateIntegeroption101
wip_qtyIntegeroption1040
versionYStringY8eg:2021101220211012
ownerStringoption50

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "batch_id": "100012",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "version":"20230315",
      "bu": "ThinkNB",
      "vendor_code": "xxx123",
      "vendor_pn": "ln1234",
      "vendor_hub_qty": 10,
      "po": 123321
    }
  ]
}

Successful response sample

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

Failed response sample

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