Skip to content

相关接口

以下接口适用于数据集成 API,对接前请了解 API 接入流程

发送数据到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
业务数据说明
参数名称必填参数类型长度参数格式描述
version_noYstring40---版本流水号/整包数据唯一码
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 status1.'ADD R',已出MO,真单不参与EPSD运算2.Real PO as normal,真单参与EPSD运算,需要与BA netting 如果HQ都用真单来参与运算,应该只有case2
请求示例
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"
    }
  ]
}
返回成功示例
json
{
  "code":"0",
  "msg":"request success"
}
返回包含错误数据示例
json
{
  "code": "E00V00",
  "msg": "data verification failed!",
  "result": [{
    "row": {
      "odm": "LCFC",
      ...
    },
    "verify": [{
      "type": "value length exceed",
      "fields": "version"
    }]
  }]
}