Skip to main content

拉取短信状态接口

请求说明

  • 接口请求域名 : api.ffrcs.cn
  • RequestURI : /rest/sms/v3/pull/sendStatus
  • Method : POST
  • Content-Type : application/json; charset=utf-8;

默认接口请求频率限制:1次/秒。

输入参数

参数类型描述示例必填
limitInteger单次拉取最大条数,最多1000条。100

响应内容

参数类型描述
codeInteger响应状态
messageString响应状态描述
dataObject数据节点
data.statusSetPullSendStatusPacket[]短信发送状态信息

PullSendStatusPacket

参数类型描述
smsIdString消息ID。
phoneNumberString手机号码。
statInteger状态码。0:代表发送成功。
statDesString发送失败的错误码。
revTimeInt64接收时间。时间戳类型。

示例

请求示例

curl  'https://api.ffrcs.cn/rest/sms/v3/pull/sendStatus' \
--header 'Content-Type: application/json' \
--header 'X-FZ-Timstamp: 1713152159772 ' \
--header 'Authorization: HmacSHA256 credential=1kl***,signature=1264b693*******be05bef' \
--data '{
"limit": 100
}'

响应示例

{
"msg": "成功",
"code": "ok",
"data": {
"statusSet": [
{
"smsId": "16715171674bb56c7f6a15d222d",
"phoneNumber": "130****",
"revTime": 1713150159772,
"stat": 0,
"statDes": "DELIVRD"
}
]
}
}

错误码参考- 错误码