用量查询
国际二号卡套餐使用查询接口
国际二号卡查询 45400的国际卡api接口对接
请求地址
GET
https://域名/productapi/v1/card/doByQuery.do
请求头部入参
| 名称 | 是否必须 | 类型 | 默认值 | 参数说明 |
|---|---|---|---|---|
Authorization | 是 | string | - | 身份认证凭证,参考 1.2 身份认证 |
请求业务入参
| 名称 | 是否必须 | 类型 | 默认值 | 参数说明 |
|---|---|---|---|---|
imsi | 是 | string | - | SIM卡的IMSI卡号 |
响应业务出参
| 名称 | 是否必须 | 类型 | 默认值 | 参数说明 |
|---|---|---|---|---|
success | 是 | Boolean | - | 请求是否成功:true 表示成功,false 表示失败 |
message | 是 | String | - | 消息描述;当 success 为 false 时,表示具体的错误信息 |
data | 是 | Object | - | 接口返回的业务数据对象 |
data.qrysub | 是 | Object | - | 套餐订阅信息 |
data.qryusage | 是 | Object | - | 流量使用信息 |
data.qrysub.retCode | 是 | String | - | 返回码 |
data.qrysub.retMesg | 是 | String | - | 返回信息 |
data.qrysub.iccid | 是 | String | - | ICCID |
data.qrysub.imsi | 是 | String | - | IMSI |
data.qrysub.msisdn | 是 | String | - | MSISDN |
data.qrysub.expTime | 是 | String | - | 过期时间 |
data.qrysub.lifeCycleTime | 是 | String | - | 生命周期最新更新时间 |
data.qrysub.effTime | 是 | String | - | 生效时间 |
data.qrysub.lifeCycle | 是 | String | - | 当前订阅者生命周期状态:0-不活跃;1-活跃;2-暂停充值;3-锁定;4-已过期 |
data.qrysub.planCode | 是 | String | - | 基本服务计划代码 |
data.qryusage.retCode | 是 | String | - | 返回码 |
data.qryusage.retMesg | 是 | String | - | 返回信息 |
data.qryusage.usageTotal | 是 | BigDecimal | - | 总流量( |
data.qryusage.usageList | 是 | Array | - | 流量列表 |
data.qryusage.mccmnc | 是 | String | - | 国家编码 |
data.qryusage.usage | 是 | BigDecimal | - | 国家流量 |
响应示例
{
"success": true,
"message": "服务调用成功",
"data": {
"qryusage": "{\"retMesg\":\"Operation Successfully.\",\"retCode\":\"000000\",\"usageTotal\":1438553,\"usageList\":[{\"mccmnc\":\"52505\",\"usage\":48951},{\"mccmnc\":\"52501\",\"usage\":390248},{\"mccmnc\":\"50212\",\"usage\":155806},{\"mccmnc\":\"50216\",\"usage\":843548}]}",
"qrysub": "{\"iccid\":\"89852000263323566937\",\"expTime\":\"20271031235959\",\"lifeCycleTime\":\"20241216144314\",\"effTime\":\"20241122170527\",\"retMesg\":\"Operation Successfully.\",\"imsi\":\"454006332356693\",\"msisdn\":\"852196332356693\",\"retCode\":\"000000\",\"lifeCycle\":\"1\",\"planCode\":\"102804\"}"
}
}