获取产品线汇总账单

最近更新时间:2021-01-18 16:55:00

本文档为您介绍如何按产品线获取账单汇总金额。注意只支持查询相同月份的数据。

请求参数

名称 必选 类型 描述
Action String 操作接口名,系统规定参数,取值:DescribeBillSummaryByProduct
Version String API版本,固定为2020-01-01
BillBeginMonth String 账单开始时间,YYYY-MM。
BillEndMonth String 账单结束时间,YYYY-MM。暂不支持跨月查询


返回数据(调用成功)

名称 类型 描述
Currency String 币种,取值 CNY、USD
RealTotalCost String 总金额,即折后价
SummaryOverview ProductSummary 数组 各产品线分布详情
RequestId String 当前请求的RequestId


示例(调用成功)

请求示例

https://bill-union.api.ksyun.com?Action=DescribeBillSummaryByProduct&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&公共参数

返回示例

  • XML格式
    <ProductTypeSummaryResponse>
    <RequestId>211098e2-8a54-4932-9e5d-eb2ffb3f5956</RequestId>
    <Currency>CNY</Currency>
    <RealTotalCost>1111.2000</RealTotalCost>
    <SummaryOverview>
        <SummaryOverview>
            <ProductCode>NAT_GROUP</ProductCode>
            <ProductName>网络地址转换NAT</ProductName>
            <RealTotalCost>30.0000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
        <SummaryOverview>
            <ProductCode>EBS_GROUP</ProductCode>
            <ProductName>云硬盘</ProductName>
            <RealTotalCost>396.0000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
        <SummaryOverview>
            <ProductCode>VM_GROUP</ProductCode>
            <ProductName>云服务器</ProductName>
            <RealTotalCost>642.0000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
        <SummaryOverview>
            <ProductCode>EIP_GROUP</ProductCode>
            <ProductName>弹性IP</ProductName>
            <RealTotalCost>43.2000</RealTotalCost>
            <BillMonth>2020-06</BillMonth>
        </SummaryOverview>
    </SummaryOverview>
    </ProductTypeSummaryResponse>
  • JSON格式
    {
    "RequestId": "8369386d-ed45-4157-9094-975a5f65bad7",
    "Currency": "CNY",
    "RealTotalCost": "1111.2000",
    "SummaryOverview": [
        {
            "ProductCode": "NAT_GROUP",
            "ProductName": "网络地址转换NAT",
            "RealTotalCost": "30.0000",
            "BillMonth": "2020-06"
        },
        {
            "ProductCode": "EBS_GROUP",
            "ProductName": "云硬盘",
            "RealTotalCost": "396.0000",
            "BillMonth": "2020-06"
        },
        {
            "ProductCode": "VM_GROUP",
            "ProductName": "云服务器",
            "RealTotalCost": "642.0000",
            "BillMonth": "2020-06"
        },
        {
            "ProductCode": "EIP_GROUP",
            "ProductName": "弹性IP",
            "RealTotalCost": "43.2000",
            "BillMonth": "2020-06"
        }
    ]
    }

金山云,开启您的云计算之旅

免费注册