短信下行回执回调 - nxtele/http-api-document GitHub Wiki

简要描述:

  • 短信下行的回执回调

请求URL:

  • 客户的短信上行地址同时作为本回执推送地址
  • 例如: http://did.nxcloud.com/didsms/smsUpPushTest

请求方式:

  • POST,以HTTP FORM表单格式提交
  • Content-Type:application/x-www-form-urlencoded

参数:

  • 参数与短信上行推送的参数一致,但代表意义有所不同,注意区分
参数名 必选 类型 说明
messageId string 短信id
type string 短信类型:0上行,1下行
toPhone string 接收短信的号码
fromPhone string 发送短信的号码
content string 发送的短信内容
size string 计费条数
price string 单价
receiveTime string 发送时间
smsStatus string 短信状态 DELIVRD(到达)\ UNDELIVR(未到达)

推送示例

messageId:fcf3432fd1834ccdac807a7cfb2d1fdf,type:0,toPhone:+18184505018,fromPhone:+12347200160,content:test from wang haha,size:1,price:0.0360,receiveTime:2021-02-07 14:54:00,smsStatus:DELIVRD

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