获取订阅视角账单统计列表
获取订阅视角账单统计列表
Query Parameters
filter string
筛选条件 支持:bill_month subscription_id 例如:bill_month=202312 AND subscription_id=13e9a890-dcb1-469b-942f-745a55b4527f
order_by string
排序
page_size int32
分页大小
page_token string
分页页码
billing_account_id string
计费账户ID
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
subscription_view_bill_details object[]
next_page_token string
分页页码
total_size int32
总记录
filter object
{
"subscription_view_bill_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": "2025-04-23T03:43:48.657Z",
"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": "2025-04-23T03:43:48.657Z",
"consume_time": "2025-04-23T03:43:48.657Z"
}
],
"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
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
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[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
GET /v1/bills/aggBills/resourceSubscription/billDetails
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
python / requests
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
go / native
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
nodejs / axios
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ruby / Net::HTTP
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
csharp / RestSharp
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
php / cURL
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
java / OkHttp
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
powershell / RestMethod
curl -L -X GET 'https://finance.sensecoreapi.cn/boss/invoice/v1/bills/aggBills/resourceSubscription/billDetails' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'