公钥:与请求ClientApi、ManagerApi保持一致。
passTo会对推送数据,使用私钥对以下参数进行RSA加密及签名,白标自研服务接收到数据,需要使用公钥进行逆向
处理。
"msgType":"sms",
"pushTime": 1707294834627,
"uniqueCode":"xxxxx-xxxx-xxxx",
"trace": "xxxxxxxxx-xxxxxxxxx-xxxxxxx"
| 参数 | 类型 | 是否必填项 | 描述 |
|---|
| msgType | String | 必填 | 消息类型(sms,email) |
| pushTime | Long | 必填 | 消息推送时间,13位时间戳 |
| trace | String | 必填 | 全局链路唯一标志,便于后续定位问题 |
| uniqueCode | String | 必填 | 每条推送消息唯一标志,重发保持不变 |
| detail | Map | 必填 | 消息内容 |
| » bizType | String | 必填 | 消息模板业务类型 |
| » toUser | String | 必填 | 收信账号 |
| » title | String | 非必填 | 消息标题,只有邮件存在 |
| » content | String | 必填 | 推送内容 |
| » timestamp | Long | 必填 | 消息发送时间,13位时间戳 |
| » ext | Map | 非必填 | 模板动态参数 |
| » language | String | 必填 | 消息语言 |
{
"msgType":"sms",
"pushTime": 1707294834627,
"uniqueCode":"xxxxx-xxxx-xxxx",
"trace": "xxxxxxxxx-xxxxxxxxx-xxxxxxx" ,
"detail":{
"bizType":"APPLICATION_CARD_SUCCESS",
"toUser": "+85212345678",
"title": "",
"content": "通知正文内容",
"timestamp": 1707294825818,
"ext":{ },
"language": "zh-CN"
}
}
| 参数 | 类型 | 是否必填项 | 描述 |
|---|
| msgType | String | 必填 | 消息类型(trade) |
| pushTime | Long | 必填 | 消息推送时间,13位时间戳 |
| trace | String | 必填 | 全局链路唯一标志,便于后续定位问题 |
| uniqueCode | String | 必填 | 每条推送消息唯一标志,重发保持不变 |
| detail | Map | 必填 | 消息内容 |
| » customerNo | String | 必填 | 客户编号 |
| » id | Long | 必填 | 记录id |
| » cardId | String | 非必填 | 卡id |
| » last4 | String | 非必填 | 卡后4位 |
| » createdAt | Long | 必填 | 交易发起时间,13位时间戳 |
| » postedAt | Long | 非必填 | 入账时间,13位时间戳 |
| » accountId | Long | 必填 | 账户id |
| » status | integer | 必填 | 状态1-待定;2-已发布;3-已拒绝;4-无效; |
| » amount | String | 必填 | sourceAmount汇率后的金额,且含手续费 |
| » type | integer | 必填 | 交易类型。1-客户消费;2-消费退款;8-其他;9-开卡费;11-抵押; 12-充卡费;13-额度调整;16-行政费用;18-划转-抵押;40-额度调整-其他-顶层;41-额度调整-其他-白标;42-额度调整-充卡费,43-额度调整-抵押,44-额度调整-赎回-顶层;45-额度调整-赎回-白标 |
| » currency | String | 必填 | 币种 |
| » operateType | Integer | 必填 | 交易操作类型。1-入账2-出账 |
| » grossAmount | String | 非必填 | sourceAmount汇率后的金额,不含手续费 |
| » sourceAmount | String | 非必填 | 原始商品交易金额 |
| » sourceCurrency | String | 非必填 | 原始交易币种 |
| » country | String | 非必填 | 国家编码,HK为本地、其他非空都是海外 |
| » activeType | String | 非必填 | ATM=ATM取款,PURCHASE=交易 |
| » merchantName | String | 非必填 | 商户名称 |
| » merchantMcc | String | 非必填 | 商户MCC编码 |
| » merchantCategory | String | 非必填 | 商户归属类型 |
| » remark | String | 非必填 | 备注 |
| » companyId | Long | 必填 | 公司id |
| » unitId | Long | 必填 | 机构id |
| » createTime | Long | 必填 | 创建时间,13位时间戳 |
| » updateTime | Long | 非必填 | 更新时间,13位时间戳 |
{
"msgType": "trade",
"pushTime": 1707294834627,
"uniqueCode":"xxxxx-xxxx-xxxx",
"trace": "xxxxxxxxx-xxxxxxxxx-xxxxxxx" ,
"detail":{
"customerNo": "86000001",
"cardId": 93,
"last4": "3964",
"accountId": 78,
"createdAt": 1707294825818,
"status": 1,
"postedAt": 1707294893121,
"type": 1,
"merchantName": "test_b1d7d0ac5f55",
"merchantMcc": "test_2e67dca0f06d",
"merchantCategory": "test_9435333c96db",
"currency": "HKD",
"amount": "47.93",
"remark": "",
"operateType": 1,
"country": "HK",
"sourceAmount": "47.93",
"sourceCurrency": "HKD",
"activeType": "PURCHASE",
"grossAmount": "47.93",
"id": 1,
"companyId": 20,
"unitId": 20,
"createTime": 1707294825818,
"updateTime": 1707294893121
}
}