跳到主要内容

GetUSMSSendReceipt

调用接口GetUSMSSendReceipt短信发送状态信息

Request Parameters

Parameter nameTypeDescriptionRequired
Actionstring值为:GetUSMSSendReceiptYes
AccountIdint项目ID:获取AccountIdYes
SessionNoSet[]string发送短信时返回的SessionNo集合,单次调用集合数需控制在100个以内Yes
  • 短信提交发送后,可调用接口GetUSMSSendReceipt查询及获取短信发送的状态信息;

  • 若发送后未立即拿到回执状态,建议在发送后5至10分钟内在尝试代用获取;

  • 若超过12小时仍未拿到发送状态,可联系support@uspeedo.com技术支持协助

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint当RetCode不为0时,Message中显示具体错误描述,若RetCode为0,不返回MessageYes
Actionstring操作名称Yes
Messagestring错误描述Yes
Dataarray回执信息集合Yes

ReceiptPerSession

Parameter nameTypeDescriptionRequired
SessionNostring发送短信时返回的SessionNoYes
ReceiptSetarray每个手机号的短信回执信息集合Yes

ReceiptPerPhone

Parameter nameTypeDescriptionRequired
Phonestring手机号码Yes
BrevityCodestring国家或地区简码Yes
CountryCodestring国家或地区代码Yes
CostCountint消耗短信条数Yes
ReceiptResultstring回执结果,枚举值:
Success: 代表成功
Fail: 代表失败
Unknow: 代表未知
SubmitFail: 代表提交失败
Yes
ReceiptCodestring状态报告编码Yes
ReceiptDescstring回执结果描述Yes
ReceiptTimeint回执返回时间Yes
UserIdstring自定义的业务标识ID,字符串Yes

Request Example

curl -X POST https://api.uspeedo.com/api -H 'Content-Type: application/json' -d '{
"Action": "GetUSMSSendReceipt",
"AccountId": 1,
"SessionNoSet": ["nAQDODtO"]
}'

Response Example

{
"Action": "GetUSMSSendReceiptResponse",
"Message": "OnVhSPcD",
"Data": [
{
"SessionNo": "BmThtoRB",
"ReceiptSet": [
{
"CostCount": 6,
"ReceiptTime": 6,
"UserId": "1213",
"ReceiptCode": "0",
"Phone": "QbPtKJPa",
"ReceiptResult": "Success",
"ReceiptDesc": "DxMRsuET",
"BrevityCode": "HK",
"CountryCode": "852"
}
]
}
],
"RetCode": 0
}