说明: 通过接口查询指定消息id记录详情。
参数 | 说明 | 是否必填 | 类型 |
---|---|---|---|
verificationId |
消息id |
是 |
String |
https://api.onbuka.com/v3/otp/verification/record/{verificationId}
Request URL:
https://api.onbuka.com/v3/otp/verification/record/22206051443051000003
Request Method:
GET
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
参数 | 说明 | 类型 |
---|---|---|
status |
状态码,0成功,其他失败参见状态码说明 |
String |
reason |
失败原因说明 |
String |
data |
响应参数详情 |
JSONObject |
verificationId |
消息id |
String |
verifications |
校验结果详情 |
JSONObject |
matched |
验证码的检验结果[ -1未校验、0校验成功、1.发送中、2.校验失败、3.不存在的verificationId ] |
Int |
verifiedDate |
校验时间 |
String |
oriReceiver |
接收号码 |
String |
channel |
通道类型 [sms, call, sna] |
String |
orderId |
第三方平台流水号,需全局唯一 |
String |
sms |
短信记录详情,verifications.channel=sms,返回此对象 |
JSONObject |
submitTm |
提交时间 |
String |
sendTm |
发送时间 |
String |
doneTm |
完成时间 |
String |
mcc |
mcc |
Int |
mnc |
mnc |
Int |
sender |
发送者id |
String |
chargeCnt |
计费条数 |
Int |
pay |
总费用一 |
String |
status |
短信发送状态-1发送中 0成功 1失败 |
Int |
reason |
失败原因描述 |
String |
call |
语音记录详情,verifications.channel=call,返回此对象 |
JSONObject |
terminationCode |
发送状态0成功其他失败 |
Int |
terminationReason |
状态码描述 |
String |
submitTime |
提交时间 |
String |
callTime |
呼叫时间 |
String |
ringingTime |
响铃时间 |
String |
answerTime |
接听时间 |
String |
hangupTime |
挂断时间 |
String |
callDuration |
通话时长 |
Int |
chargedDuration |
计费时长 |
Int |
displayNum |
显示号码 |
String |
billPeriodstring |
计费周期 |
String |
code |
地区供应商 |
String |
rate |
费率 |
String |
costEur |
消费金额 |
String |
sna |
静默网络登录记录详情,verifications.channel=sna,返回此对象 |
JSONArray |
postVerificationTime |
请求校验时间 |
String |
verificationBackTime |
校验结果返回时间 |
String |
mcc |
mcc |
Int |
mnc |
mnc |
Int |
status |
验证状态[-1未验证、0成功、1失败] |
Int |
reason |
原因说明 |
String |
{
"status": "0",
"reason": "success",
"data": {
"verificationId": "22206051443051000004",
"verifications":{
"matched":0,
"verifiedDate":"2022-01-01T00:00:10+08:00",
"oriReceiver":"8613500000000",
"channel":"sms",
"orderId":null
},
"sms": {
"submitTm":"2022-01-01T00:00:00+08:00",
"sendTm":"2022-01-01T00:00:01+08:00",
"doneTm":"2022-01-01T00:00:02+08:00",
"mcc":404,
"mnc":-1,
"sender":null,
"chargeCnt":2,
"pay":"0.015",
"status":0,
"reason":"success"
},
"call": null,
"sna": null
}
}
{
"status": "0",
"reason": "success",
"data": {
"verificationId": "22206051443051000004",
"verifications":{
"matched":0,
"verifiedDate":"2022-01-01T00:00:10+08:00",
"oriReceiver":"8613500000000",
"channel":"call",
"orderId":null
},
"call": {
"terminationCode":0,
"terminationReason":"success",
"submitTime":"2022-01-01T00:00:00+08:00",
"callTime":"2022-01-01T00:00:01+08:00",
"ringingTime":"2022-01-01T00:00:02+08:00",
"answerTime":"2022-01-01T00:00:05+08:00",
"hangupTime":"2022-01-01T00:00:10+08:00",
"callDuration":5,
"chargedDuration":5,
"displayNum":null,
"billPeriodstring":"20+20",
"code":"91",
"rate":"0.015",
"costEur":"0.015"
},
"sms":null,
"sna": null
}
}