Skip to content

BA mapping data

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

发送数据到Lenovo

Description:发送数据至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_mapping
Request data description
ParamRequiredTypeLengthFormatDescription
version_noYstring40---version
plantYstring20Wistron/LCFC/Compal
banoYstring20---Build ahead PO number
balineYstring10Build ahead PO line
baqtyYnumberBuild ahead PO Quantity
netted_baqtyYnumberQty netted with real PO
netted_poqtyYnumberPO Qty used in netting
ponoYstring16Real PO number
polineYstring12Real PO Line number
poqtyYnumberReal PO Quantity
statusYstring5Real PO status
Request sample
JSON
{
  "batch_id": "11297",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "version_no": "",
      "plant": "",
      "bano": "",
      "baline": "",
      "baqty": "20",
      "netted_baqty": "20",
      "netted_poqty": "20",
      "pono": "10000000",
      "poline": "10",
      "poqty": "10",
      "status": "1"
    },
    {
      "version_no": "",
      "plant": "",
      "bano": "",
      "baline": "",
      "baqty": "20",
      "netted_baqty": "20",
      "netted_poqty": "20",
      "pono": "10000000",
      "poline": "10",
      "poqty": "10",
      "status": "1"
    }
  ]
}
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"
    }]
  }]
}