查询资源账单详情

1. 接口描述

调用 DescribeResourceBill 接口查询指定账期的资源账单详细信息。

2. 请求参数

名称 类型 是否必选 描述
Action String 固定取值:DescribeResourceBill
ResourceUUID String 资源ID
BillDate String 账单时间,格式为:yyyy-MM

3. 返回数据

名称 类型 说明
ResourceBillDetail ResourceBillDetail 资源账单详情
RequestId String 请求ID

4. 示例

请求示例

https://openapi.kaopuyun.com/?AccessKeyId=sz0000ei53aw
&Action=DescribeResourceBill
&Format=JSON
&ResourceUUID=bwp-zc000005ntrr
&SignatureMethod=HMAC-SHA1
&SignatureNonce=76a5d5e7-0992-462d-9a26-916650eca00f
&SignatureVersion=1.0
&Timestamp=2023-03-09T07%3A33%3A56Z
&Version=2014-05-26
&Signature=LH5UYKO7k%2FeQlyLH3p169uyRKyU%3D
&BillDate=2023-03

正常返回示例

{
    "RequestId":"742fbe80-0ea9-11eb-9b36-0208cb7f7896",
    "ResourceBillDetail":{
        "PayPrice" : "0.00",
        "RegionCode":"demo-1",
        "ResourceName" : "修改名称test1",
        "TotalPrice" : "0.00",
        "ProductType":"BWP",
        "BillStatus":"CLEARED",
        "ResourceUUID":"bwp-zc000005ntrr",
        "BillDate":"2022-09",
        "BillDetails":[
                {
                "PayPrice":24660.0,
                "BillType":"COMSUMPTION",
                "BillUUID":"nx0000000qhe",
                "BillBeginTime":"2022-09-17 13:41",
                "TotalPrice":24660.0,
                "ProductType":"BWP",
                "ConfigItem":"共享带宽",
                "PaymentType":"POST_PAID",
                "BillStatus":"CLEARED",
                "ResourceUUID":"bwp-zc000005ntrr",
                "BillEndTime":"2022-09-30 23:59"
                }
         ]
    }
}

5. 错误码

错误码 错误信息
DescribeResourceBillFail 查询资源账单详情失败:xxx
MissingParameter ResourceUUID 参数不能为空
MissingParameter BillDate 参数不能为空
kaopuyun all right reserved,powered by GitbookUpdated Time: 2024-10-09 06:22:14

results matching ""

    No results matching ""