application/json; charset=UTF-8注意: 配置推送URL时,必须包含 http://或https://协议前缀,例如https://api.example.com/receive。
{
"code": "0",
"message": "",
"basetype": "ptype",
"dealtype": "modify",
"typeid": "12345"
}| 字段 | 类型 | 说明 |
|---|---|---|
code | string | 固定值 "0" |
message | string | 固定为空字符串 |
basetype | string | 基础资料类型,见下表 |
dealtype | string | 操作类型:modify(新增/修改)/ delete(删除) |
typeid | string | 被操作记录的ID |
| 值 | 含义 |
|---|---|
ptype | 存货 |
btype | 往来单位(包含供应商和客户) |
{
"code": "0",
"message": "",
"response": [
{
"ptypeid": "101",
"ktypeid": "5",
"blockno": "",
"prodate": "",
"custom1": "",
"custom2": "",
"custom3": "",
"custom4": "",
"qty": 100.00,
"qtyother": 0.00,
"kusercode": "WH001",
"kfullname": "主仓库",
"pusercode": "P001",
"pfullname": "存货A",
"c1usercode": "",
"c1fullname": "",
"c2usercode": "",
"c2fullname": "",
"krec": 1,
"prec": 1,
"custom1rec": 0,
"custom2rec": 0
}
]
}| 字段 | 类型 | 说明 |
|---|---|---|
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 |
字段名均为小写。
http:// 或 https:// 协议前缀。| 配置项 | 数据库配置名 | 说明 |
|---|---|---|
| 基本信息回调地址 | BaseInfoPushUrl | 基础资料变更时推送的目标URL |
| 库存回调地址 | GoodsStocksPushUrl | 库存变动时推送的目标URL |