application/json; charset=UTF-8注意: 配置推送URL时,必须包含 http://或https://协议前缀,例如https://api.example.com/receive。
{
"code": "0",
"message": "",
"response": [
{
"basetype": "ptype",
"dealtype": "modify",
"typeid": "12345"
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
code | string | 固定值 "0" |
message | string | 固定为空字符串 |
response | array | 基础资料变更信息,固定只有一条记录 |
response[0].basetype | string | 基础资料类型,见下表 |
response[0].dealtype | string | 操作类型:modify(新增/修改)/ delete(删除) |
response[0].typeid | string | 被操作记录的ID |
| 值 | 含义 |
|---|---|
ptype | 存货 |
supplier | 供应商/客户(往来单位) |
etype | 职员 |
mtype | 项目 |
{
"code": "0",
"message": "",
"response": [
{
"ptypeid": 101,
"ptypename": "存货A",
"warehouseid": 5,
"warehousename": "主仓库",
"qty": 100.00,
"...": "..."
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
code | string | 固定值 "0" |
message | string | 固定为空字符串 |
response | array | 库存记录列表 |
| 字段 | 类型 | 说明 |
|---|---|---|
ptypeid | string | 商品ID |
ktypeid | string | 仓库ID |
blockno | string | 批次号 |
prodate | string | 生产日期 |
custom1 | string | 自定义项1 ID |
custom2 | string | 自定义项2 ID |
custom3 | string | 自定义项3 |
custom4 | string | 自定义项4 |
qty | decimal | 库存数量 |
qtyother | decimal | 其他数量 |
kusercode | string | 仓库编号 |
kfullname | string | 仓库名称 |
pusercode | string | 商品编号 |
pfullname | string | 商品名称 |
c1usercode | string | 自定义项1编号 |
c1fullname | string | 自定义项1名称 |
c2usercode | string | 自定义项2编号 |
c2fullname | string | 自定义项2名称 |
krec | int | 仓库Rec |
prec | int | 商品Rec |
custom1rec | int | 自定义项1 Rec |
custom2rec | int | 自定义项2 Rec |
字段名均为小写。
{
"code": "0",
"message": "",
"response": [
{
"vchtype": 101,
"vchcode": 100023,
"dealtype": "audit"
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
code | string | 固定值 "0" |
message | string | 固定为空字符串 |
response | array | 单据操作信息,固定只有一条记录 |
response[0].vchtype | number | 单据类型编码 |
response[0].vchcode | number | 单据编号(主键ID) |
response[0].dealtype | string | 操作类型,见下表 |
| 值 | 含义 |
|---|---|
add | 新增保存 |
modify | 修改保存 |
delete | 删除 |
audit | 审核 |
unaudit | 反审核 |
http:// 或 https:// 协议前缀。