最近更新时间:2024-08-12 10:30:01
本文档为您介绍如何按项目制获取账单汇总金额。注意:只支持查询相同月份的数据。
名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 操作接口名,系统规定参数,取值: |
Version | 是 | String | API版本,固定为 |
BillBeginMonth | 是 | String | 账单开始时间,YYYY-MM。 |
BillEndMonth | 是 | String | 账单结束时间,YYYY-MM。暂不支持跨月查询 |
SubAccount | 否 | Long | 成员账号 Id,非必填。 不传成员账号SubAccount时,返回主账号自己+成员账号的账单数据;传成员账号SubAccount,仅返回该成员账号的账单数据。 |
名称 | 类型 | 描述 |
---|---|---|
Currency | String | 币种,取值 CNY、USD |
RealTotalCost | String | 总金额,即折后价 |
SummaryOverview | 各产品线分布详情 | |
RequestId | String | 当前请求的RequestId |
请求示例
https://bill-union.api.ksyun.com?Action=DescribeBillSummaryByProject&Version=2020-01-01&BillBeginMonth=2020-06&BillEndMonth=2020-06&公共参数
返回示例
XML格式
<ProjectSummaryResponse>
<RequestId>0c12de73-ac6e-4c72-a60e-f66464c0ba09</RequestId>
<Currency>CNY</Currency>
<RealTotalCost>1111.2000</RealTotalCost>
<SummaryOverview>
<SummaryOverview>
<ProjectId>0</ProjectId>
<ProjectName>默认项目</ProjectName>
<RealTotalCost>169.2000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
<SummaryOverview>
<ProjectId>100686</ProjectId>
<ProjectName>kvmProject</ProjectName>
<RealTotalCost>942.0000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
<SummaryOverview>
<ProjectId>100681</ProjectId>
<ProjectName>DailyProject</ProjectName>
<RealTotalCost>0.0000</RealTotalCost>
<BillMonth>2020-06</BillMonth>
</SummaryOverview>
</SummaryOverview>
</ProjectSummaryResponse>
JSON格式
{
"RequestId": "9e45be3f-0768-44d8-9174-baaf77ac3b78",
"Currency": "CNY",
"RealTotalCost": "1111.2000",
"SummaryOverview": [
{
"ProjectId": "0",
"ProjectName": "默认项目",
"RealTotalCost": "169.2000",
"BillMonth": "2020-06"
},
{
"ProjectId": "100686",
"ProjectName": "kvmProject",
"RealTotalCost": "942.0000",
"BillMonth": "2020-06"
},
{
"ProjectId": "100681",
"ProjectName": "DailyProject",
"RealTotalCost": "0.0000",
"BillMonth": "2020-06"
}
]
}
纯净模式