Skip to content

发送数据到pocm

Description:发送stock in的数据
topic:scc.stock-in
业务数据说明
参数名称必填参数类型长度参数格式描述
lenovo_pnYstring50
lenovo_plant_codeYstring50
lenovo_storage_locationYstring50
original_supplier_codeYstring50
posaYstring50
stock_receiving_typeYstring50
stock_receiving_dateYdatetimeyyyy-MM-dd HH24:mm:ss
tpl_receiving_idYstring50
receipt_idYstring50
line_idYstring50
ecc_gr_docYstring50
good_quantityYdecimal10,3
actionYstring10新增:INSERT 更新:UPDATE 删除:DELETE
请求示例
JSON
  {
    "batch_id": "11297",
    "batch_size": 1,
    "lenovo_pn":"pn01",
    "lenovo_plant_code":"vendor001",
    "lenovo_storage_location":"tst",
    "original_supplier_code":"0232823233343",
    "posa":"102343",
    "stock_receiving_type":"",
    "stock_receiving_date": "2023-10-24 23:32:12",
    "tpl_receiving_id":"",
    "receipt_id":"",
    "line_id":"233.23",
    "ecc_gr_doc":"2344.42",
    "good_quantity":"1.23",
    "action": "insert"
  }
返回成功示例
json
{
  "code": "0",
  "msg": "request success"
}
返回包含错误数据示例
json
{

}