Skip to content

BOM

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

Request data description

ParamkeyTypeRequiredLengthDescription
uidString32unique id
buStringY50
vendor_codeYStringY30
vendor_nameStringY100
vendor_father_itemYStringY20
cm_father_itemYStringY18
vendor_child_itemYStringY20
cm_child_itemString18
quantity_perNumberY13,3
effective_start_dateDate(yyyy-mm-dd hh:mm:ss)Y
effective_end_dateDate(yyyy-mm-dd hh:mm:ss)Y
priorityNumber13,3alternative item priority
alternate_item_groupString50
splitNumberY2,20.2
versionYStringY8yyyymmdd eg:20211012

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "vendor_code":"LCFC",
  "vendor_name": "",
  "vendor_father_item ":"712801000000",
  "cm_father_item ":"SA78D09909",
  "vendor_child_item": "BLSXSC28C60966",
  "odm_child_item ":"BLXSC28C60966",
  "cm_child_item ":"SC28C60966   ",
  "quantity_per ":"100",
  "effective_start_date":"2022-08-01",
  "effective_end_date ":"2022-08-01",
  "priority ":"2",
  "alternate_item_group":"34",
  "split ":"0.2",
  "version ":"20220801"
  }

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