Skip to content

DID号码短信记录查询

bailuyang edited this page Aug 24, 2021 · 11 revisions

简要描述

  • 查询DID号码的上下行短信记录

请求URL:

  • http://did.nxcloud.com/didsms/getSmsCdr

请求方式:

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

参数:

参数名 必选 类型 说明
userName string 客户登录用户名
passWord string 客户登录密码
startDate string 开始日期(yyyy-MM-dd)
endDate string 结束日期(yyyy-MM-dd)
pageSize string 每页数量(小于1000条)
page string 起始页
type string 短信类型:0上行,1下行,2全部,默认2全部
didNumber string did号码
sortType string 排序类型(按时间): 0=升序,1=降序;默认为0

返回示例

{
    "msg": "请求成功",
    "code": 0,
    "info": {
        "total": 27,
        "page": 2,
        "pageSize": 2,
        "rows": [
            {
                "countryCode": 86,
                "messageId": "36e35ab225b94205a238ba81bb0fd67a",
                "toPhone": "8618380338033",
                "fromPhone": "18188888888",
                "type": 1,
                "content": "test",
                "size": 1,
                "price": 0.1000,
                "sendTime": "2021-02-09 10:08:44",
                "drTime": null,
                "smsStatus": "提交失败"
            },
            {
                "countryCode": 86,
                "messageId": "7a1d214633cd4fb29cfdf05d6be47faf",
                "toPhone": "8618380338033",
                "fromPhone": "+18188888888",
                "type": 1,
                "content": "test - send",
                "size": 1,
                "price": 0.1000,
                "sendTime": "2021-02-09 10:55:05",
                "drTime": "2021-02-09 10:54:58",
                "smsStatus": "UNDELIVR"
            }
        ]
    }
}

返回参数说明

参数名 类型 说明
msg string 请求结果说明
code string 结果编码
countryCode int 国家code
messageId string 短信id
toPhone string 短信接收号码
fromPhone string 短信发送号码
type int 短信类型(0上行/1下行)
content string 短信内容
size int 计费条数
price bigDecimal 单价
sendTime string 发送时间
drTime string dr时间
smsStatus string 短信状态

备注

  • HTTP 错误代码
code 说明
0 请求成功
1 用户名或者密码不可用
2 参数错误或为空
19 DID短信类型错误,取值范围(0上行,1下行,2全部,默认2全部)
20 日期格式错误,正确格式为(yyyy-MM-dd)
21 pageSize每页数量错误,取值范围(1-1000)
99 系统错误

简介

短信

语音

云呼叫中心(NXLink)

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

Flash Call

短链

邮件验证码

DID号码

通用

号码检测

WhatsApp

Viber

Zalo ZNS

Super Message API

隐私号(旧)

PNS

坐席(旧版)

AI Agent

Clone this wiki locally