Skip to content

BA PO delivery data

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

Description:`# BA PO delivery data to Lenovo
Method:POST
ContentType:application/json
Path:https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/{data_category}/{biz_key}
data_categorybiz_key
cpspba_po_delivery
Request data description
ParamRequiredTypeLengthFormatDescription
version_noYstring40---version
ponoYstring20Real PO number
polineYstring20---Real PO Line number
poqtyYnumberReal PO Quantity
plantYstring20plant
dcYstring20Geo
banoYstring20Build ahead PO number
balineYstring20Build ahead PO line
baqtyYnumberBuild ahead PO Quantity netted with delivery
matnrYstring20Product number
netted_baqtyYnumberQty netted with real PO
netted_poqtyYnumberPO Qty used in netting
sys_dateYdateyyyy-MM-dd HH:mm:ssyyyy-MM-dd HH:mm:ss
Request sample
JSON
{
  "batch_id": "11297",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "version_no": "",
      "plant": "",
      "dc": "",
      "bano": "",
      "baline": "",
      "matnr": "",
      "baqty": 0,
      "netted_baqty": 0,
      "netted_poqty": 0,
      "pono": "",
      "poline": "",
      "poqty": 0,
      "sys_date": "2022-01-19 14:27:38"
    },
    {
      "version_no": "",
      "plant": "",
      "dc": "",
      "bano": "",
      "baline": "",
      "matnr": "",
      "baqty": 0,
      "netted_baqty": 0,
      "netted_poqty": 0,
      "pono": "",
      "poline": "",
      "poqty": 0,
      "sys_date": "2022-01-19 14:27:38"
    }
  ]
}
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"
    }]
  }]
}