合同变更推送
信息
合同修改内容如下时, 触发修改事件:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
推送数据
appId、timestamp、version、sign,详见推送数据格式约定
Body
Base64 编码加密数据,加密方式详见推送数据格式约定。加密前数据为UTF8编码JSON
修改客户信息通知:
{
"type":"contract_info",
"noise":-7372086545969055456,
"msgId":46696,
"content":{
"id":"HT.525089058893760",
"createTime":"2023-02-15 14:28:14",
"changeType":"edit_contract",
"title":"浮动",
"customerId":512922871373824,
"opportunityPos":[
{
"id":523518785820736,
"name":"空调10"
}
],
"orderId":[
525086590103488
],
"amount":1112,
"startTime":"2023-02-14 00:00:00",
"endTime":"2023-02-17 00:00:00",
"signTime":"2023-02-16 00:00:00",
"customerSign":"bb",
"mineSign":"aa",
"paymentMethod":"支付类型",
"contractType":0,
"contractStatus":447583769765954,
"lifeStatus":0,
"status":1
}
}
参数说明
JSON字段 | 类型 | 可空 | 说明 |
---|---|---|---|
noise | 数字 | 否 | 随机数。接收方成功接收处理消息后需要在响应中回复此值。 |
type | 字符串 | 否 | 消息主类型。此类型消息固定为 contract_info |
msgId | 字符串 | 否 | 消息id |
content | 对象 | 否 | 消息内容 |
content.changeType | 字符串 | 否 | 消息子类型(add_contract 新增合同; edit_contarct修改合同; del_contract删除合同) |
content.id | 字符串 | 否 | 合同id |
content.createTime | 字符串 | 否 | 创建时间 |
content.title | 字符串 | 否 | 合同名称 |
content.customerId | 数字 | 否 | 客户id |
content.opportunityPos | 对象 | 是 | 商机 |
content.opportunityPos.id | 数字 | 是 | 商机id |
content.opportunityPos.name | 字符串 | 是 | 商机名称 |
content.orderId | 数组 | 是 | 订单id |
content.invoiceId | 数组 | 是 | 发票id |
content.refundId | 数组 | 是 | 退款单id |
content.billId | 数组 | 是 | 回款单id |
content.startTime | 字符串 | 是 | 合同开始时间 |
content.endTime | 字符串 | 是 | 合同结束时间 |
content.signTime | 字符串 | 是 | 合同签约时间 |
content.customerSign | 字符串 | 是 | 客方签约人 |
content.mineSign | 字符串 | 是 | 我方签约人 |
content.paymentMethod | 字符串 | 是 | 支付类型 |
content.contractType | 字符串 | 是 | 合同类型 |
content.contractStatus | 字符串 | 是 | 合同状态 |
content.status | 数字 | 是 | 审核状态: 0审核中; 1已通过; 2已拒绝; 3已撤销; 5已解锁 |
content.lifeStatus | 数字 | 是 | 合同生命状态: 0草稿; 1提交审批; 2作废 |
参见响应约定
修改于 2023-03-06 08:59:48