Skip to content

ASN to ODM

This interface is applicable for data integration API, read Api Push Process first

Request address

  • API
EnvironmentURL
Testhttps://recipient_provide
Prodhttps://recipient_provide
FrequencyTimeData amount
Per hour--Incremental

Request data description

ParamKeyTypeLengthDescripton
lenovo_pnString18lenovo part number
asnYString100ASN
asn_lineYString4ASN item Line
poString10purchase order
po_lineString6purchase order Line
odm_poString50ODM purchase order
odm_po_lineString50ODM purchase order Line
delivery_notesString100Delivery note number
delivery_notes_lineString4Delivery line number
qtyString13,3delivery quantity
cooString50country of origin
ship_from_codeString10ship from code
ship_from_nameString100ship from name
ship_to_codeString20ship to code
ship_to_nameYString100ship to name
buString18Business unit
actual_issue_dateStringUTC Timeactual good issue date time(yyyy-MM-ddTHH:mm:ssZ)
system_dateStringUTC Timesystem create date time(yyyy-MM-ddTHH:mm:ssZ)

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": [
        {
          "lenovo_pn": "SD11L98492",
          "asn": "CSD24C0163",
          "asn_line": "1",          
          "odm_pn": "SD11L98492",
          "odm_po": "16328028",
          "odm_po_line": "60",
          "delivery_notes": "CSD24C0163",
          "delivery_notes_line": "1",
          "qty": "430",
          "coo": "xxx",
          "ship_from_code": "000",
          "ship_from_name": "xxx",
          "ship_to_code": "000",
          "ship_to_name": "xxx",
          "bu": "xx",
          "actual_issue_date": "2024-12-18T10:42:53Z",
          "system_date": "2024-12-18T10:42:53Z"
        }
  ]
}

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