获取按地域汇总费用分布

最近更新时间:2020-07-13 08:09:09

1. 接口描述

接口请求域名: billing.tencentcloudapi.com 。

获取按地域汇总费用分布

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeBillSummaryByRegion。
Version String 公共参数,本接口取值:2018-07-09。
Region String 公共参数,本接口不需要传递此参数。
PayerUin String 查询账单数据的用户UIN
BeginTime String 目前只支持传当月开始,且必须和EndTime为相同月份,例 2018-09-01 00:00:00
EndTime String 目前只支持传当月结束,且必须和BeginTime为相同月份,例 2018-09-30 23:59:59

3. 输出参数

参数名称 类型 描述
Ready Integer 数据是否准备好,0未准备好,1准备好
SummaryOverview Array of RegionSummaryOverviewItem 各地域花费分布详情
注意:此字段可能返回 null,表示取不到有效值。
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 获取按地域汇总费用分布

输入示例

https://billing.tencentcloudapi.com/?Action=DescribeBillSummaryByRegion
&PayerUin=909619400
&BeginTime=2018-11-01 00:00:00
&EndTime=2018-11-01 23:59:59
&<公共请求参数>

输出示例

{
  "Response": {
    "Ready": 1,
    "SummaryOverview": [
      {
        "RegionId": "4",
        "RealTotalCost": "1330.52",
        "CashPayAmount": "1330.52",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "83.26",
        "BillMonth": "2018-11",
        "RegionName": "华东地区(上海)"
      },
      {
        "RegionId": "1",
        "RealTotalCost": "200.85",
        "CashPayAmount": "24.87",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "175.99",
        "RealTotalCostRatio": "12.57",
        "BillMonth": "2018-11",
        "RegionName": "华南地区(广州)"
      },
      {
        "RegionId": "8",
        "RealTotalCost": "66.58",
        "CashPayAmount": "66.58",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "4.17",
        "BillMonth": "2018-11",
        "RegionName": "华北地区(北京)"
      },
      {
        "RegionId": "16",
        "RealTotalCost": "0.02",
        "CashPayAmount": "0.02",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "西南地区(成都)"
      },
      {
        "RegionId": "19",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "西南地区(重庆)"
      },
      {
        "RegionId": "24",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "欧洲地区(莫斯科)"
      },
      {
        "RegionId": "6",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "北美地区(多伦多)"
      },
      {
        "RegionId": "9",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "东南亚地区(新加坡)"
      },
      {
        "RegionId": "17",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "欧洲地区(德国)"
      },
      {
        "RegionId": "5",
        "RealTotalCost": "0.00",
        "CashPayAmount": "0.00",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.00",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "港澳台地区(中国香港)"
      },
      {
        "RegionId": "0",
        "RealTotalCost": "-1.49",
        "CashPayAmount": "-1.50",
        "IncentivePayAmount": "0.00",
        "VoucherPayAmount": "0.01",
        "RealTotalCostRatio": "0.00",
        "BillMonth": "2018-11",
        "RegionName": "其他"
      }
    ],
    "RequestId": "88268803-850d-44bc-8d64-df857c2d7487"
  }
}

5. 开发者资源

API Explorer

该工具提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力,能显著降低使用云 API 的难度,推荐使用。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码

目录