发送数据到pocm
Description:发送stock in的数据
topic:scc.stock-in
业务数据说明
参数名称 | 必填 | 参数类型 | 长度 | 参数格式 | 描述 |
---|---|---|---|---|---|
lenovo_pn | Y | string | 50 | ||
lenovo_plant_code | Y | string | 50 | ||
lenovo_storage_location | Y | string | 50 | ||
original_supplier_code | Y | string | 50 | ||
posa | Y | string | 50 | ||
stock_receiving_type | Y | string | 50 | ||
stock_receiving_date | Y | datetime | yyyy-MM-dd HH24:mm:ss | ||
tpl_receiving_id | Y | string | 50 | ||
receipt_id | Y | string | 50 | ||
line_id | Y | string | 50 | ||
ecc_gr_doc | Y | string | 50 | ||
good_quantity | Y | decimal | 10,3 | ||
action | Y | string | 10 | 新增: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
{
}