DID短信结果回调(无加签) - nxtele/http-api-document GitHub Wiki
简要描述:
- 通过DID号码进行短信上行结果推送
- DID号码进行短信下行后的回执回调
请求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 | 接收短信的号码(DID号码) |
fromPhone | 是 | string | 发送短信的号码 |
content | 是 | string | 接收的短信内容 |
size | 是 | string | 计费条数 |
price | 是 | string | 单价 |
receiveTime | 是 | string | 接收时间 |
smsStatus | 是 | string | 短信状态 DELIVRD(到达)\ UNDELIVR(未到达) |
推送示例
messageId:fcf3432fd1834ccdac807a7cfb2d1fdf,toPhone:+18184505018,fromPhone:+12347200160,content:test from wang haha,size:1,price:0.0360,receiveTime:2021-02-07 14:54:00,smsStatus:DELIVRD,type:1
用户返回值 成功返回字符串:success 失败返回字符串:error