Skip to content

ASN Data

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

Sample:/Planning/SCC/LCFC/odm/asn/asn_update_20220928123000_001

FrequencyTimeData amount
Real Time0.00Daily

Note:ODM's supplier ships DBDS material ASN information to ODM
ODM, as a supplier of Lenovo in house factory and remote site, needs to provide the shipping ASN reference T-1 BSR in SA&V scope

Request data description

TIP

Note: field requirements are different on bu, please refer to the following table

ParamKeyTypedefault requiredPCG-NBISGLengthDescriptonExample
uidString32Unique id
asnYStringYYY20ASN80989080120220600
asn_lineYStringYYY10ASN item Line
buStringYYY50business unit
odmYStringYYY40odm nameLCFC
poStringYYY10purchase order7520750895
po_lineStringYYY6purchase order Line10
odm_pnStringYYY20ODM part number
odm_pn_descStringY100ODM part number description
mfg_pnStringYYY200manufacturing part number
lenovo_pnStringYYY18lenovo part number
material_typeStringYYY10BS/DS/DB
procurement_modeStringYYY10VMI/Ship to ODM
statusStringYYY10Closed/Open/Cancel/DeleteOpen
delivery_noteYStringYYY100Delivery note number809890801
delivery_lineYStringYYY50Delivery line number10
delivery_qtyIntegerYYY10delivery quantity6000
updated_etaDateYYYupdated estimate time of arrival2022-06-24
etaDateYYYorigin etiamate time of arrival2022-06-24
ship_dateDateYYYship date2022-06-24
versionStringYYY14version yyyyMMddHHmmss20220809070600
comment1String100reserved field
comment2String100reserved field

Response data description

ParamTypeDescription
codeString0: success, others:failed
msgStringthe detail message, especially useful on failure

Request sample

json
{
  "batch_id": "90397",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "asn": "80989080120220622",
      "asn_line": "123abc",
      "bu": "ThinkNB",
      "odm": "LCFC",
      "po": "7520750895",
      "po_line": "10",
      "odm_pn": "820000000000",
      "odm_pn_desc": "odm_pn_desc述",
      "mfg_pn": "mfgpn",
      "lenovo_pn": "45109112310",
      "material_type": "DS",
      "procurement_mode": "VMI",
      "status": "Open",
      "delivery_note": "809890801",
      "delivery_line": "123",
      "delivery_qty": "6000",
      "updated_eta": "2022-06-24",
      "eta": "2022-06-24",
      "ship_date": "2022-06-22",
      "version": "20220809070600",
      "comment1": "20220809070600",
      "comment2": "20220809070600"
    }
  ]
}

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