查询单张SIM卡话单明细
GET
/sims/{sim_id}/cdr简要描述
版本:
1.0
、 2.0
适用场景:
有SIM卡ID,查询特定SIM卡某时间段内的话单明细。
业务规则:
- 指定SIM卡查询时,每次可查询一个SIM卡,历史数据最多支持距离当前日期180天。
必要条件:
SDK API 调用方式
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v1().cdr().simCdr(SimCdr.builder(1, "8965011909030066336").receivedStartTime("2022-11-16 00:00:00").receivedEndBy("2022-12-16 23:59:59").pageNo(1).pageSize(10).build());
client.v2().cdr().simCdr(SimCdr.builder(1, "8965011909030066336").receivedStartTime("2022-11-16 00:00:00").receivedEndBy("2022-12-16 23:59:59").pageNo(1).pageSize(10).build());
请求参数
Path 参数
sim_id
string
必需
Query 参数
received_start_time
string
必需
received_end_by
string
必需
page_no
integer
必需
示例值:
0
page_size
integer
必需
示例值:
0
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
array [object {10}] | null
必需
imsi
string
必需
msisdn
string
必需
mcc
string
必需
mnc
string
必需
network
string
必需
data
integer
单位byte
sim_id
string
必需
plan_id
string
必需
套餐ID,同bundle id
session_started_at
string
必需
session_ended_at
string
必需
status
#/definitions/41430733必需
total_count
integer
必需
示例
{
"data": [
{
"imsi": "204123456789001",
"msisdn": "881234567891301",
"mcc": "510",
"mnc": "11",
"network": "2G",
"data": 0,
"sim_id": "893109999999999031463",
"plan_id": "DP20190916001651",
"session_started_at": "2022-08-06T14:08:56.000+00:00",
"session_ended_at": "2022-08-06T14:09:05.000+00:00"
},
{
"imsi": "204123456789001",
"msisdn": "881234567891301",
"mcc": "510",
"mnc": "11",
"network": "2G",
"data": 962,
"sim_id": "893109999999999031463",
"plan_id": "DP20190916001651",
"session_started_at": "2022-08-08T00:48:45.000+00:00",
"session_ended_at": "2022-08-08T00:48:54.000+00:00"
}
],
"status": {
"code": "CB-00-0000",
"message": "Success",
"detail": null
},
"total_count": 1765
}
最后修改时间: 2 年前