查询成本账单按天
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
注意
为了提升查询效率和成功率,您可使用分摊日"AmortizedDay"指定获取某日数据;
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListAmortizedCostBillDaily | 要执行的操作,取值:ListAmortizedCostBillDaily。 |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01。 |
AmortizedType | Array of String | 否 | [1] | 分摊类型:1:履约计费分摊;2:合同计费分摊;3:按量计费分摊;4:新购分摊;5:更配分摊;6:续费分摊;7:退订分摊;8:预留实例调整分摊;9:试用分摊;10:转正分摊;默认不选为全部 |
BillingMode | Array of String | 否 | [1] | 计费模式:1:包年包月;2:按量计费;3:合同计费;4:履约计费;默认不选为全部 |
BillCategory | Array of String | 否 | [consume-use] | 账单类型:consume-use:消费-使用;consume-new:消费-新购;consume-renew:消费-续费;consume-formalize:消费-转正;consume-modify:消费-更配;consume-trial:消费-试用;refund-terminate:退款-退订;refund-modify:退款-更配;transfer-manual:调账-人工;transfer-system:调账-系统;默认不选为全部 |
Product | Array of String | 否 | [ECS] | 产品名称,默认不选为全部 |
AmortizedDay | String | 否 | 2023-10-01 | 分摊日:格式为YYYY-MM-DD;仅支持单日查询;最早只能查询2023-04-01; |
PayerID | Array of Long | 否 | [2100057673] | Payer账号ID |
OwnerID | Array of Long | 否 | [2100057673] | Owner账号ID |
Offset | Integer | 否 | 0 | 偏移量 |
Limit | Integer | 是 | 10 | 数量:[1-300] |
BillPeriod | String | 否 | 2023-08 | 账务账期:格式为YYYY-MM;仅支持单月查询;最多24个月;最早只能查询2023-04; |
AmortizedMonth | String | 是 | 2023-08 | 分摊月:格式为YYYY-MM;仅支持单月查询;最多24个月;最早只能查询2023-04; |
InstanceNo | String | 否 | i-ycjlq77tdg8rx6ib4v1s | 实例id,默认不选为全部 |
IgnoreZero | Integer | 否 | 1 | 是否忽略折后价为0的数据:0:不忽略;1忽略;默认为不忽略; |
NeedRecordNum | Integer | 否 | 1 | 是否需要访问列表的总记录数:用于前端分页;1:表示需要; 0:表示不需要;默认为不需要 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
List | Array of CostBillDaily | 成本明细按天列表 | |
Total | Integer | 100 | 总数 |
Limit | Integer | 100 | 步长 |
Offset | Integer | 0 | 偏移量 |
POST /?Action=ListAmortizedCostBillDaily&Version=2022-01-01 HTTP/1.1 Host: https://open.volcengineapi.com?Action= ListAmortizedCostBillDaily&Version=2022-01-01 Content-Type: application/json; charset=UTF-8 X-Date: 20240510T081125Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240510/cn-beijing/billing/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "Limit": 10, "AmortizedMonth": "2023-08" }
{ "ResponseMetadata":{ "RequestId":"202302151509010207BA7B59BCEA6513BD", "Action":"ListAmortizedCostBillDaily", "Version":"2022-01-01", "Service":"billing", "Region":"cn-north-1" }, "Result":{ "List": [ { "AmortizedMonth": "2024-01", "AmortizedDay": "2024-01-30", "BillPeriod": "2024-01", "BusiPeriod": "2024-01", "PayerID": "2100058101", "PayerUserName": "yangjie-boe", "PayerCustomerName": "北京火山引擎科技有限公司", "SellerID": "3423", "SellerUserName": "火山引擎", "SellerCustomerName": "北京火山引擎科技有限公司", "OwnerID": "2100058101", "OwnerUserName": "yangjie-boe", "OwnerCustomerName": "北京火山引擎科技有限公司", "Product": "volume", "ProductZh": "弹性块存储", "BusinessMode": "普通业务", "BillingMode": "包年包月", "BillCategory": "退款-更配", "AmortizedType": "更配分摊", "AmortizedBeginTime": "2024-01-30 00:00:00", "AmortizedEndTime": "2024-01-30 23:59:59", "BillID": "Order7324986498372960300", "InstanceNo": "vol-3ve6goftbz48s2m0nokj", "InstanceName": "vol-3ve6goftbz48s2m0nokj", "Element": "EBS数据盘", "Region": "中国台湾-容灾演练", "Zone": "可用区A-东湾", "Factor": "类型-ESSD_PL0", "ExpandField": "-", "Price": "0.50", "PriceUnit": "GiB", "Count": "30.00", "Unit": "GiB", "UseDuration": "-1", "UseDurationUnit": "-", "CouponAmount": "0.00", "PayableAmount": "-14.26", "PaidAmount": "-14.26", "DailyAmortizedCouponAmount": "0.00", "DailyAmortizedPayableAmount": "-0.44", "DailyAmortizedOriginalBillAmount": "-0.445625", "DailyAmortizedPreferentialBillAmount": "0.000000", "DailyAmortizedRoundAmount": "0.000000", "DailyAmortizedDiscountBillAmount": "-0.44", "DailyAmortizedPaidAmount": "-0.44", "NowAmortizedCouponAmount": "0.00", "NowAmortizedPayableAmount": "-0.44", "NowAmortizedOriginalBillAmount": "-0.445625", "NowAmortizedPreferentialBillAmount": "0.000000", "NowAmortizedRoundAmount": "0.000000", "NowAmortizedDiscountBillAmount": "-0.44", "NowAmortizedPaidAmount": "-0.44", "Currency": "CNY", "Project": "-", "Tag": "{\"volc:ecs:linkedresource\":[\"trn:ecs:cn-taiwan-boe:2100058101:instance/i-ycwwh2qha845nhw2ys1d\"]}", "SubjectName": "北京火山引擎科技有限公司", "ConfigName": "数据盘-极速型SSD-PL0-包年包月", "OriginalBillAmount": "-14.260000", "PreferentialBillAmount": "0.000000", "RoundAmount": "0.000000", "DiscountBillAmount": "-14.26", "ExpenseTime": "2024-01-17 17:01:07-2024-02-17 23:59:59", "BillingMethodCode": "包月", "ElementCode": "BE001550", "RegionCode": "R004564", "ZoneCode": "cn-taiwan-boe-a", "FactorCode": "type:ESSD_PL0", "ConfigurationCode": "data-EBS_ESSD_PL0.month", "ProjectDisplayName": "默认项目" } ], "Total":74, "Limit":10, "Offset":0 } }
您可访问公共错误码,获取更多错误码信息。