查詢計費賬單
更新時間 2023-02-17 16:11:34
最近更新時間: 2023-02-17 16:11:34
分享文章
接口功能介紹
調用本接口查詢計費賬單詳情
使用說明
單個用戶一分鐘限制調用10000次,并發不超過100。
接口詳情
請求方式:get
請求路徑:/usage-management/query-bill-detail-list
請求參數
| 參數名 | 類型 | 是否必填 | 名稱 | 說明 |
|---|---|---|---|---|
| start_month | string | 是 | 開始月份 | 如2021-01,開始月份和結束月份的跨度不能超過12個月 |
| end_month | string | 是 | 結束月份 | 如2021-12,開始月份和結束月份的跨度不能超過12個月 |
| product_code | string | 否 | 產品編碼 | 支持產品類型:“005”(視頻直播) |
| page_num | int | 否 | 頁碼 | 不傳默認1 |
| page_size | int | 否 | 頁大小 | 不傳默認20 |
響應參數
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼 |
| message | string | 是 | 描述信息 |
| data | object | 否 | 返回結果 |
| data.result | list< object> | 否 | 返回結果列表 |
| data.result[*].start_time | string | 否 | 賬單用量開始時間 |
| data.result[*].end_time | string | 否 | 賬單用量結束時間 |
| data.result[*].product_code | string | 否 | 產品編碼 |
| data.result[*].billing_type_name | string | 否 | 計費方式 |
| data.result[*].billing_unit | string | 否 | 計費值單位 |
| data.result[*].total_value | decimal | 否 | 計費值 |
| data.result[*].billing_area | int | 否 | 計費區域代碼,0(中國大陸) |
示例
請求路徑://cdnapi-global.ctapi.daliqc.cn/usage-management/query-bill-detail-list
請求示例
請求://cdnapi-global.ctapi.daliqc.cn/usage-management/query-bill-detail-list?start_month=2022-07&end_month=2022-09&product_code=005
正確響應示例
{
"code": 100000,
"message": "success",
"data": {
"result": [
{
"start_time": "2022-08-01 00:00:00",
"total_value": 1472658.58,
"end_time": "2022-08-31 23:59:59",
"billing_type_name": "日95帶寬值月平均",
"product_code": "005",
"billing_area": 0,
"billing_unit": "Mbps"
},
{
"start_time": "2022-07-01 00:00:00",
"total_value": 890088.14,
"end_time": "2022-07-31 23:59:59",
"billing_type_name": "日95帶寬值月平均",
"product_code": "005",
"billing_area": 0,
"billing_unit": "Mbps"
}
]
}
}
錯誤碼請參考:參數code和message含義