首页 帮助中心 API

平台主动推送状态报告

说明: 由我方运营人员配置客户http推送地址后,平台会将 http-api接入的短信,状态报告主动推送给用户配置地址。

推送参数说明:

参数 说明 是否必填 类型

appId

应用id( 短信-短信应用)

String

msgid

提交号码对应平台msgid

String

mobile

提交号码

String

status

状态码:0成功,其它失败

Int

reason

原因描述

String

timestamp

发送时间戳(毫秒)

Long

pricedetail

费用详情

JSONObject

  pay

总费用

String

  chargeCnt

计费条数

Int

  currency

币种

String

  price

单价

String

推送 URL:

                  
                    用户配置的https推送地址
                  
                

推送示例:

                  
                    RequestURL:
                        用户配置的http推送地址
                    RequestMethod:
                        POST
                    RequestHeaders:
                        User-Agent: Java/1.8.0_232
                        Content-Type: application/json;charset=UTF-8
                    RequestBody:
                        {
                            "appId":"4luaKsL2",
                            "msgid":"2108021059531000096",
                            "mobile":"91850000000",
                            "status":0,
                            "reason":"0",
                            "timestamp":1629801177192,
                            "pricedetail":{
                                "pay":"0.02",
                                "currency":"EUR",
                                "chargeCnt":2,
                                "price":"0.01"
                            }
                        }
                  
                

响应示例:

Http响应200成功即可,平台不做响应内容校验
 

意见反馈

0/500