Skip to content

短信回执回调

bailuyang edited this page Apr 16, 2021 · 11 revisions

简要描述:

  • 短信回执(DR)推送

请求URL:

  • DR推送的Http接口地址(由用户提供)
  • 例如: http://106.15.34.94:8989/sms/testDr

请求方式:

  • POST
  • 相关参数,以 query string 方式,在 url 里传递

参数:

参数名 必选 类型 说明
phone string 手机号
status string 状态代码:2:成功下发,其他数字都未下发成功
result string 回执内容: DELIVRD\ UNDELIV
drtime string 回执报告时间,格式为:yyyy-MM-dd HH:mm:ss
messageid string 短信id,对应的短信提交成功得到的id
currency string price的币种 如:CNY\ USD
price string 对应币种的短信单价
rate string 美元对人民币汇率 如:7.05
sendtime string 发送时间,格式为:yyyy-MM-dd HH:mm:ss
size string 计费条数

推送示例

http://106.15.34.94:8080/sms/testDr?result=DELIVRD&size=1&phone=6282167624806&rate=6.4845&price=0.045&messageid=b308d94a73f94e6d84ae975c41f4b2a6&drtime=2021-02-26 10:01:15&currency=USD&sendtime=2021-02-26 10:01:15&status=2

用户返回值 成功返回字符串:success 失败返回字符串:error

备注 说明:DR只推送一次,如果需要重复推送,请向客服联系 批量短信的messageid=response的messageid-10位随机数(20190909151515701-1234567890)

简介

短信

语音

云呼叫中心(NXLink)

云呼叫中心(AI自动外呼)

Flash Call

短链

邮件验证码

DID号码

通用

号码检测

WhatsApp

Viber

Zalo ZNS

Super Message API

隐私号(旧)

PNS

坐席(旧版)

AI Agent

Clone this wiki locally