消息接口
说明:发送验证码。根据每种业务类型(bizType)和发送人(toUser/customerNo),半小时内只允许发送5次短信、5次邮件
version=0.0.1
bizType=message.app.VerificationApiService.verifyCodeSend开启人机校验
version=0.0.2
bizType=message.app.VerificationApiService.verifyCodeSend{{company}}en-US{{mock_trace}}0.0.1公司Id
客户Id
业务类型。EMAIL_COMMON_VERIFICATION_CODE-邮件通用验证码;EMAIL_LOGIN_VERIFICATION_CODE-邮件登录验证码;EMAIL_REGISTER_VERIFICATION_CODE-邮件注册验证码;EMAIL_PASSWORD_VERIFICATION_CODE-邮件忘记密码验证码;EMAIL_LOGINED_VERIFICATION_CODE-通用验证码-已登录-客户信息中获取接收人;SMS_COMMON_VERIFICATION_CODE-短信通用验证码;SMS_LOGIN_VERIFICATION_CODE-短信登录验证码;SMS_REGISTER_VERIFICATION_CODE-短信注册验证码;SMS_PASSWORD_VERIFICATION_CODE-短信忘记密码验证码;SMS_LOGINED_VERIFICATION_CODE-通用验证码-已登录-客户信息中获取接收人;SMS_TELEGRAM_VERIFICATION_CODE-短信telegram验证码;
接收人。toUser、customerNo必须有一个要填:如果需要从客户信息里获取则传customerNo, 如果是发送telegram验证码就传第三方userId
接收人。toUser、customerNo必须有一个要填:如果需要从客户信息里获取则传customerNo
接收人所在国家信息
POST /api/global/message.app.VerificationApiService.verifyCodeSend HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 103
{
"companyId": 39,
"bizType": "EMAIL_PASSWORD_VERIFICATION_CODE",
"toUser": "[email protected]",
"customerId": 88
}{
"msg": "Success",
"fail": false,
"trace": "x-45c2ptm3-u5p98t3-gf1b2x-9pbyl41-1678691805",
"code": "0",
"data": {
"token": "38caf08b-fafd-4cb5-b36c-ebdd1878b974"
},
"bizCode": "",
"tm": 34,
"msgParams": null,
"ok": true
}说明:验证验证码
version=0.0.1
bizType=message.app.VerificationApiService.verifyCodeCheck{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1公司Id
客户Id
业务类型。EMAIL_COMMON_VERIFICATION_CODE-邮件通用验证码;EMAIL_LOGIN_VERIFICATION_CODE-邮件登录验证码;EMAIL_REGISTER_VERIFICATION_CODE-邮件注册验证码;EMAIL_PASSWORD_VERIFICATION_CODE-邮件忘记密码验证码;EMAIL_LOGINED_VERIFICATION_CODE-通用验证码-已登录-客户信息中获取接收人;SMS_COMMON_VERIFICATION_CODE-短信通用验证码;SMS_LOGIN_VERIFICATION_CODE-短信登录验证码;SMS_REGISTER_VERIFICATION_CODE-短信注册验证码;SMS_PASSWORD_VERIFICATION_CODE-短信忘记密码验证码;SMS_LOGINED_VERIFICATION_CODE-通用验证码-已登录-客户信息中获取接收人;
接收人
发送票据
验证码。仅可使用一次,与verifyCodeToken必须至少有一个有值
验证票据。由首次验证验证码后返回。(与code必须至少有一个有值,如与code同时有值,仅验证此字段)。注:验证5次错误,验证票据将直接失效
POST /api/global/message.app.VerificationApiService.verifyCodeCheck HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"companyId": 12,
"bizType": "sit sint ut sed occaecat",
"toUser": "in",
"sendToken": "fugiat ipsum occaecat",
"customerId": 49,
"code": "53",
"verifyCodeToken": "95"
}{
"msg": "Success",
"fail": false,
"trace": "x-71o574-2tn5hk-pkj44361-3612md-1678691829",
"code": "0",
"data": {
"token": "647a8a53-b97c-4d4a-b936-ffdce2096ad6"
},
"bizCode": "",
"tm": 10,
"msgParams": null,
"ok": true
}说明:获取指定公司下站内信类型列表
version=0.0.1
bizType=message.app.PlatFormMessageTempApiService.getPlatformTempParentTypeList{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1POST /api/global/message.app.PlatFormMessageTempApiService.getPlatformTempParentTypeList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"companyId": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": [
{
"type": "text",
"desc": "text"
}
]
}说明:获取指定公司下站内信消息列表
version=0.0.1
bizType=message.app.PlatFormMessageLogApiService.queryPlatFormMessageLogList{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.11-未读;2-已读;3-删除;
POST /api/global/message.app.PlatFormMessageLogApiService.queryPlatFormMessageLogList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"companyId": 1,
"bizType": "text",
"status": 1,
"language": "text",
"accountId": 1,
"customerId": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": [
{
"bizType": "text",
"status": "text",
"title": "text",
"content": "text",
"redirectType": "text",
"redirectUrl": "text",
"createdBy": "text"
}
]
}说明: 查询公告列表
version=0.0.1
bizType=message.app.CompanyNoticeApiService.customerViewNoticePage{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1公司Id
客户编号
语种
每页条数
当前页,从1开始
发布时间-开始。13位时间戳
发布时间-结束。13位时间戳
POST /api/global/message.app.CompanyNoticeApiService.customerViewNoticePage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"companyId": 1,
"customerNo": "text",
"lang": "text",
"size": 1,
"current": 1,
"pubTimeFrom": 1,
"pubTimeTo": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": [
{
"name": "text",
"language": "text",
"title": "text",
"content": "text",
"pubTime": 1,
"id": 1,
"companyId": 1,
"customerNo": "text"
}
]
}说明: 客户查看消息列表
version=0.0.1
bizType=message.app.CompanyNoticeApiService.customerViewMsgPage{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.113位时间戳
13位时间戳
POST /api/global/message.app.CompanyNoticeApiService.customerViewMsgPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"companyId": 1,
"customerNo": "text",
"lang": "text",
"size": 1,
"current": 1,
"pubTimeFrom": 1,
"pubTimeTo": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": [
{
"name": "text",
"language": "text",
"title": "text",
"content": "text",
"pubTime": 1,
"id": 1,
"companyId": 1,
"customerNo": "text",
"readStatus": "text"
}
]
}说明: 客户读消息
version=0.0.1
bizType=message.app.CompanyNoticeApiService.msgRead{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1POST /api/global/message.app.CompanyNoticeApiService.msgRead HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"companyId": 1,
"customerNo": "text",
"id": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": {}
}说明:客户消息全部已读
version=0.0.1
bizType=message.app.CompanyNoticeApiService.msgAllRead{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1POST /api/global/message.app.CompanyNoticeApiService.msgAllRead HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"companyId": 1,
"customerNo": "text"
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": {}
}说明:unipush账户绑定clientId
bizType=messagepush.app.OfflinePushService.clientIdBindCustomer{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1POST /api/global/messagepush.app.OfflinePushService.clientIdBindCustomer HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"companyId": 1,
"customerId": 1,
"clientId": "text"
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": true
}说明:分页查询渠道消息模板列表
version=0.0.1
bizType=message.app.PlatFormMessageLogApiService.queryPlatFormMessageLogByPage{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1公司Id
业务类型
状态。1-未读;2-已读;3-删除;
语种
账户ID
类型
标题
总类型
客户ID
开始发送时间
结束发送时间
每页条数
当前页
POST /api/global/message.app.PlatFormMessageLogApiService.queryPlatFormMessageLogByPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 189
{
"companyId": 1,
"bizType": "text",
"status": 1,
"language": "text",
"accountId": 1,
"type": 1,
"title": "text",
"parentType": "text",
"customerId": 1,
"startSendTime": 1,
"endSendTime": 1,
"size": 1,
"current": 1
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": [
{
"companyId": 1,
"content": "text",
"createdBy": "text",
"createTime": 1,
"customerId": 1,
"readStatus": "text",
"title": "text",
"updateBy": "text",
"updateTime": "text",
"customerNo": "text"
}
]
}说明:发送联系我们信息
version=0.0.1
bizType=message.app.CompanyNoticeApiService.sendContactUsMsg{{company}}{{LoginResult.data.token}}en-US{{mock_trace}}0.0.1公司Id
名称
邮箱
内容
POST /api/global/message.app.CompanyNoticeApiService.sendContactUsMsg HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"companyId": 1,
"name": "text",
"email": "text",
"message": "text"
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true
}此接口用于客户接入Openapi时,需要订阅账户、持仓、交易推送消息时申请消息订阅的鉴权Token
公司ID
{{company}}Trace
{{mock_trace}}语言
zh-CN时间窗口
5000apiKey
{{apikey}}签名
{{sign}}POST /api/global/getMsgPushToken HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"msg": "Success",
"fail": false,
"trace": "",
"code": "0",
"data": "6230de2c-281a-47fe-9d5d-b5f6ac60f482push",
"bizCode": "",
"tm": 0,
"ok": true
}Last updated