ASN to ODM
This interface is applicable for data integration API, read Api Push Process first
Request address
- API
| Environment | URL |
|---|---|
| Test | https://recipient_provide |
| Prod | https://recipient_provide |
| Frequency | Time | Data amount |
|---|---|---|
| Per hour | -- | Incremental |
Request data description
| Param | Key | Type | Length | Descripton |
|---|---|---|---|---|
| lenovo_pn | String | 18 | lenovo part number | |
| asn | Y | String | 100 | ASN |
| asn_line | Y | String | 4 | ASN item Line |
| po | String | 10 | purchase order | |
| po_line | String | 6 | purchase order Line | |
| odm_po | String | 50 | ODM purchase order | |
| odm_po_line | String | 50 | ODM purchase order Line | |
| delivery_notes | String | 100 | Delivery note number | |
| delivery_notes_line | String | 4 | Delivery line number | |
| qty | String | 13,3 | delivery quantity | |
| coo | String | 50 | country of origin | |
| ship_from_code | String | 10 | ship from code | |
| ship_from_name | String | 100 | ship from name | |
| ship_to_code | String | 20 | ship to code | |
| ship_to_name | Y | String | 100 | ship to name |
| bu | String | 18 | Business unit | |
| actual_issue_date | String | UTC Time | actual good issue date time(yyyy-MM-ddTHH:mm:ssZ) | |
| system_date | String | UTC Time | system create date time(yyyy-MM-ddTHH:mm:ssZ) |
Response data description
| Param | Type | Description |
|---|---|---|
| code | String | 0: success, others:failed |
| msg | String | the detail message, especially useful on failure |
Request sample
json
{
"batch_id": "90397",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"lenovo_pn": "****",
"asn": "CS*****63",
"asn_line": "1",
"odm_pn": "****",
"odm_po": "16*****8",
"odm_po_line": "60",
"delivery_notes": "CSD*****163",
"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"
}]
}]
}