Skip to content

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

Request data description

ParamkeyTypePCG requiredMBG requiredLengthDescription
uidString32unique id
buYStringYY50
odm_or_t1_supplierYStringYY60
vendor_codeYStringYY30
vendor_nameStringYY60
vendor_pnYStringYY200
odm_or_t1_pnStringY200
lenovo_pnString200
mpnString200manufacturing partnumber
locationStringY50
location_descStringY100
vendor_qtyIntegerY10lenovo stock quantity
vendor_hub_qtyIntegerY10vendor hub stock
poInteger10PO
unrestricted_qtyInteger10Valuated Unrestricted-Use Stock
inspection_qtyInteger10inspection qty
block_qtyInteger10
open_po_qtyInteger10
available_to_allocateInteger10
wip_qtyIntegerY10
raw_materialInteger10
lenovo_vmi_inventoryIntegerYY10
versionYStringYY8YYYYMMDD
material_typeStringYY10FG/WIP

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{

  }

Successful response sample

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

Failed response sample

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