Skip to content

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

Sample :/Planning/SCC/LCFC/t1/bom/bom_update_20220928123000_001

FrequencyTIMETrans modekeyRemark
Daily00:10:00API,FTP,UI(upload)vendor_code + vendor _father_item + father_item + vendor_child_item + version

Request data description

ParamKeyTypeRequiredLengthDescriptionExample
uidString32
buString50ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile TabletThinkNB
vendor_codeYStringY30vendor code2022012
vendor_nameStringoption500vendor anme
vendor_father_itemYStringY30father item
vendor_parent_itemYStringY30vendor father item, provide N/A if no father item
father_itemYStringY30lenovo father item
vendor_child_itemYStringY30vendor child item
child_itemStringY30lenovo child item
quantity_perNumberY13,3usage in father item
effective_start_dateDateYBOM effective start dateyyyy-mm-dd
effective_end_dateDateYBOM effective end dateyyyy-mm-dd
priorityStringY13,3priority of alternative code
alternate_item_groupStringoption50
splitNumberY4,2eg:0.21
versionYStringY16yyyyMMddHHmmss20211012000000
ownerStringoption50
vendor_child_item_descStringoption200vendor child item description

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "batch_id": "100055",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "child_item": "123",
      "effective_end_date": "2022-09-14",
      "effective_start_date": "2022-09-14",
      "father_item": "213",
      "priority": 10.2,
      "quantity_per": 10.1,
      "split": 0.28,
      "vendor_child_item": "eee",
      "vendor_code": "eee",
      "vendor_father_item": "ee",
      "version": "20220914"
    }
  ]
}

Successful response sample

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

Failed response sample

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