查询SIM卡指定套餐某时间段的流量使用量
将废弃GET
/usage/statistics/{order_id}/daily_usage获取起止日期范围内的订单日流量统计,日统计时区以UTC+8为准。日流量大小为字节(Byte)
SDK API 调用方式
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v1().other().orderDailyUsage(new OrderDailyUsage(3, "20230406000002107", "89314404000894487785", "2023-01-01", "2023-03-31"));
client.v2().other().orderDailyUsage(new OrderDailyUsage(3, "20230406000002107", "89314404000894487785", "2023-01-01", "2023-03-31"));
请求参数
Path 参数
order_id
string
通信套餐订单ID
示例值:
L201903020000000617
Query 参数
sim_id
string
SIM卡ICCID
示例值:
89860120200221752333
query_start_date
string
必需
查询开始日期。时区:GMT+8,格式:yyyy-MM-dd
示例值:
2021-12-01
create_end_by
string
必需
查询结束日期。时区:GMT+8,格式:yyyy-MM-dd
示例值:
2021-12-31
Body 参数application/json
object {0}
示例
{}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
必需
activated_at
string
必需
planed_ended_at
string
必需
actual_ended_at
string | null
必需
daily_usage_statistics
array [object {2}]
必需
status
#/definitions/41430733必需
示例成功示例
{
"data": {
"activated_at": "2020-02-10 15:46:15",
"planed_ended_at": "2022-05-31 23:59:59",
"actual_ended_at": null,
"daily_usage_statistics": [
{
"date": "2022-05-16",
"usage": "2343"
},
{
"date": "2022-05-17",
"usage": "2343"
}
]
},
"status": {
"code": "CB-00-0000",
"message": "CB-00-0000",
"detail": null
}
}
最后修改时间: 1 年前