获取账单明细
获取账单明细
Path Parameters
账单ID 必传参数 传"-"获取所有符合条件的账单明细记录
Query Parameters
过滤. 支持:bill_month(消费时间)、resource_owner_id(资源所有人ID)、billing_account_id(计费账户ID)、subscription_id(订阅ID)、id(账单号) 例如:bill_month>=202312140001 AND bill_month<=202312212300 AND resource_owner_id="2e680318-ac43-4eff-ba58-0411def81ca5" AND billing_account_id="1923737314902171648" AND id="1999814837475053568" AND subscription_id="05486ac0-272d-4189-8c2e-cbe3842db537"
排序结果
返回当前页的最大条目数
从上一个List请求返回的next_page_token值(如果有的话)
账户视角或者资源组视角的账单详情接口的明细ID
账单所属sku IDs 英文逗号分割
账单所属spu IDs 英文逗号分割
- 200
- default
OK
Schema
- Array [
- ]
- Array [
- ]
bill_hourly_details object[]
账单明细
amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
original_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
discount_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
coupon_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
voucher_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
paid_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
unpaid_amount object
价格
货币代码, 参考ISO 4217
价格整数部分
价格小数部分
下一页
总记录
filter object
筛选数据
resource_owner object
资源实例所属用户 可选 MAP<id,display_name>
subscription_owner object
所属订阅 可选MAP<id,display_name>
billing_accounts object
所属计费账户 可选 MAP<id,display_name>
boss_filters object[]
boss数据层级筛选项
类目/SPU/SKU ID
类目/SPU/SKU 显示名
子级筛选数据 一般分三级 顶级为类目次级为SPU三级为SKU
{
"bill_hourly_details": [
{
"id": "string",
"resource_owner_id": "string",
"resource_owner_name": "string",
"resource_group_id": "string",
"resource_group_name": "string",
"subscription_id": "string",
"billing_account_id": "string",
"bill_month": "string",
"spu_id": "string",
"spu_name": "string",
"amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"original_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"discount_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"coupon_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"voucher_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"paid_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"unpaid_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"state": "BS_UNSPECIFIED",
"payment_model": "PM_UNSPECIFIED",
"create_time": "2024-11-04T06:28:48.601Z",
"sku_id": "string",
"sku_name": "string",
"quantity": 0,
"billing_item_property_name": "string",
"billing_item_display_name": "string",
"consume_type": "CT_UNSPECIFIED",
"consume_desc": "string",
"resource_name": "string",
"subscription_name": "string",
"resource_instance_id": "string",
"management_group_display_name": "string",
"billing_account_display_name": "string",
"management_group_uuid": "string",
"backend_catalog_id": "string",
"backend_catalog_displayname": "string",
"tenant_id": "string",
"tenant_type": "string",
"update_time": "2024-11-04T06:28:48.601Z",
"consume_time": "2024-11-04T06:28:48.601Z"
}
],
"next_page_token": "string",
"total_size": 0,
"filter": {
"resource_owner": {},
"subscription_owner": {},
"billing_accounts": {},
"boss_filters": [
{
"id": "string",
"display_name": "string",
"children": [
null
]
}
]
}
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}