Skip to content

po flag data

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

Description:transfer po flag 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
cpsppo_flag_data
Request data description
ParamRequiredTypeLengthFormatDescription
version_noYstring40---version
po_idYstring20TDN number
po_lineYstring20---TDN Line
plantYstring20plant
lnvpnstring20
lcfcpnstring20
qtynumber
mo_flagstring10
k_flagstring10
outsourcing_flagstring10
Request sample
JSON
{
  "batch_id": "11297",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "version_no": "20202131231",
      "po_id": "LCFC",
      "po_line": "1010001137",
      "plant": "SD10W87241",
      "lnvpn": "",
      "lcfcpn": "",
      "qty": "1000",
      "mo_flag": "1000",
      "k_flag": "1000",
      "outsourcing_flag": "1000"
    },
    {
      "version_no": "20202131231",
      "po_id": "LCFC",
      "po_line": "1010001137",
      "plant": "SD10W87241",
      "lnvpn": "",
      "lcfcpn": "",
      "qty": "1000",
      "mo_flag": "1000",
      "k_flag": "1000",
      "outsourcing_flag": "1000"
    }
  ]
}
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"
    }]
  }]
}