Skip to content

SHIPMENT 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/shipment
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/odm/shipment

Request data description

ParamKeyTypeRequiredLengthDescriptionExample
uidString32Unique id
buStringY50PCG contains:ThinkNB、IdeaNB、ThinkDT、IdeaDT、Workstation;ISG/MBG
poYStringY50Purchase order number4601044323
po_lineYStringY1010
order_typeString10ZEF1
familyStringY100X9_CLAM_KO/机型
productYStringY20MTM
site_idYStringY20LCFC
customerYStringY20NEC/Medion/Brazil
order_qtyIntegerY101
ship_qtyIntegerY101
open_qtyIntegerY10
ocdDateorder create date2023-11-20
re_rsdDateYYYYY-MM-DD2023-11-21
rsdDateYYYYY-MM-DD2023-11-22
ship_dateDateYYYYY-MM-DD2023-11-23
deliveryYStringY24delivery note(DN)
dn_line_numYStringY25delivery line(DN Line)
comment1String100reserved field
comment2String100reserved field
comment3String100reserved field
comment4String100reserved 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": [{
    "bu": "ThinkNB",
    "po": "4601044323",
    "po_line": "10",
    "order_type": "ZEF1",
    "family": "X9_CLAM_KO/机型",
    "product": "MTM",
    "site_id": "LCFC",
    "customer": "NEC",
    "order_qty": "1",
    "ship_qty": "1",
    "open_qty": "1",
    "ocd": "2023-11-22",
    "re_rsd": "2023-11-21",
    "rsd": "2023-11-23",
    "ship_date": "2023-11-24",
    "delivery": "demo delivery",
    "dn_line_num": "demo dn_line_num",
    "comment1": "demo comment1",
    "comment2": "demo comment2",
    "comment3": "demo comment3",
    "comment4": "demo comment4"
  }]
}

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