ListSplitSummary
Queries the split bill summary for a specified billing month or date, allowing you to view the costs of resources and split items and filter the results by product, account, business unit, resource group, and tag.
Operation description
This operation aggregates split bill records by day or month, providing active visibility into the cost attribution of split resources. For products that support automatic splitting, you can view costs by attached resource, such as OSS buckets, CDN domain names, and EIPs of Internet Shared Bandwidth. For the supported scope, refer to Split bill details.
The final split bill data for the current month is generated at 12:00 on the 4th day of the following month. Query results before this time are for reference only and must not be used as the final basis for reconciliation. The generation of attached resource costs is delayed. If the data is incomplete, query again after the update.
Amounts, usage, and durations are returned as character strings. Use decimal numeric types to process amounts to avoid precision loss caused by binary floating-point numbers.
Whether a field has a value depends on the product billing methods, splitting rules, and bill data. A null value or an unreturned field does not mean the value is zero. Information such as public IP addresses, private IP addresses, and resource names also depends on the resource information query capability of the product.
This operation uses the field glossary of the new version of bills. For related concepts, see Differences and field descriptions of the new version of bills. The parameter names and response structure of this operation are subject to this topic.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:DescribeBill |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TagFilters |
array<object> |
No |
The resource tag filter conditions. Different objects in the list and multiple values of the same tag key are matched by using the OR operator. The tag filters are combined with the cost category filters and CommonFilters by using the AND operator. |
[{"TagKey":"env","TagValues":["prod"]}] |
|
object |
No |
A resource tag filter condition, which includes a tag key and an optional list of tag values. |
{"TagKey":"env","TagValues":["prod"]} |
|
| TagKey |
string |
Yes |
The tag key. It cannot be empty or contain only whitespace characters. |
env |
| TagValues |
array |
No |
The list of tag values. Matches any given value under the specified tag key. If this parameter is not passed or an empty array is passed, only the existence of the tag key is required. |
["prod"] |
|
string |
No |
A tag value. Multiple values under the same tag key are matched by using the OR operator. |
prod |
|
| CostCategoriesFilters |
array<object> |
No |
The cost category filter conditions. Different objects in the list and multiple values of the same cost category are matched by using the OR operator. The cost category filters are combined with the tag filters and CommonFilters by using the AND operator. |
[{"CostCategoriesKey":"business","CostCategoriesValues":["commerce"]}] |
|
object |
No |
A cost category filter condition, which includes a cost category name and an optional list of category values. |
{"CostCategoriesKey":"business","CostCategoriesValues":["commerce"]} |
|
| CostCategoriesKey |
string |
Yes |
The name of the cost category. It cannot be empty or contain only whitespace characters. |
business |
| CostCategoriesValues |
array |
No |
The list of cost category values. Matches any given value under the specified cost category. If this parameter is not passed or an empty array is passed, only the existence of the cost category is required. |
["commerce"] |
|
string |
No |
A cost category value. Multiple values under the same cost category are matched by using the OR operator. |
commerce |
|
| CommonFilters |
array<object> |
No |
The common filter conditions. Supports filtering by product, commodity, region, billing item, fee type, resource, account, business unit, resource group, and split item. Different fields are combined by using the AND operator. Pass only one object for the same field. For more information, see the supplementary description of request parameters. |
[{"FilterField":"SplitItemId","Operation":"IN","Values":["example-bucket"]}] |
|
object |
No |
A common filter condition, which consists of FilterField, Operation, and Values. Matched legacy flat parameters are overridden by this condition. |
{"FilterField":"SplitItemId","Operation":"IN","Values":["example-bucket"]} |
|
| Operation |
string |
No |
The match method. It is case-insensitive and defaults to IN if it is not passed or is empty. Valid values:
|
IN |
| FilterField |
string |
No |
The name of the filter field. This parameter is required when setting conditions. For supported fields and match rules, see the supplementary description of request parameters. |
SplitItemId |
| Values |
array |
No |
The filter values. This parameter is always a string array. Use an array even for a single value, a Boolean value, or an account ID. |
["example-bucket"] |
|
string |
No |
A filter value. Use a string. Pass "true" or "false" for Boolean values, and pass a decimal numeric string for account and business unit IDs. |
example-bucket |
|
| Period |
object |
No |
The query time range. This parameter is required and includes Granularity, StartTime, and EndTime. You can query only one billing month per request. If passed, it overrides the legacy flat time parameters. |
{"Granularity":"DAILY","StartTime":"2026-09-01","EndTime":"2026-09-07"} |
| Granularity |
string |
No |
The time granularity. This parameter is required. It is case-insensitive. Valid values:
|
DAILY |
| StartTime |
string |
No |
The start time. This parameter is required and is inclusive. The format is yyyy-MM for MONTHLY and yyyy-MM-dd for DAILY. |
2026-09-01 |
| EndTime |
string |
No |
The end time. This parameter is inclusive. Required for DAILY in the yyyy-MM-dd format. It must not be earlier than StartTime and must be in the same month as StartTime. Optional for MONTHLY. If passed, it must be the same as StartTime. |
2026-09-07 |
| NextToken |
string |
No |
The token for the next page query. Do not pass this parameter for the first query. For subsequent queries, pass the NextToken returned in the previous response as is. The query ends when the token is empty or no longer returned. Do not construct or parse the token yourself. Keep Period, account scope, all filter conditions, and MaxResults consistent during pagination. |
opaque-token-example |
| MaxResults |
integer |
No |
The maximum number of records to return per page. Used in combination with NextToken. Pass a positive integer. We recommend that you explicitly set this parameter and keep it unchanged during pagination. The actual number of returned records may be less than this value. |
20 |
| EcIdAccountIds |
array<object> |
No |
The query scope for enterprises and accounts. If not passed, the bill scope of the current account is queried. Specify only one enterprise object per request. The actual accessible scope is limited by permissions. |
[{"EcId":"123456","AccountIds":[1234567890123456]}] |
|
object |
No |
An enterprise and account scope object. Specify only one object per request. The actual query scope is limited by account relationships and permissions. |
{"EcId":"123456","AccountIds":[1234567890123456]} |
|
| EcId |
string |
No |
The ID of the enterprise entity. |
123456 |
| AccountIds |
array |
No |
The list of account IDs to access. If empty, all accounts under the current enterprise entity are selected. The actual scope is limited by permissions. |
[1234567890123456] |
|
integer |
No |
An account ID to access. Use an int64 integer. The actual accessible scope is limited by account relationships and permissions. |
1234567890123456 |
The enterprises, accounts, resources, codes, and amounts in the examples are demonstration values. Replace them with actual values that you have permissions to access. The JSON examples show the logical structure of the parameters. When you make actual API calls, serialize the parameters according to the SDK or OpenAPI specifications. The examples omit common parameters such as signatures.
Time range and pagination
Period is a required business parameter. For DAILY, you must provide both StartTime and EndTime within the same month in the yyyy-MM-dd format. Both the start and end dates are included in the query range.
For MONTHLY, specify StartTime in the yyyy-MM format. Do not specify EndTime, or set it to the same value as StartTime. To query data across multiple months, make separate calls for each month.
Omit NextToken in the first request. For subsequent requests, use the non-empty token returned in the previous response exactly as it is, and keep Period, the account scope, all filter conditions, and MaxResults consistent. Stop pagination only when the token is empty or not returned. Do not determine the end of pagination based solely on the number of items on the current page.
Fields supported by CommonFilters
The following names are valid values for CommonFilters[].FilterField.
| FilterField | Operation | Number of values | Description | Example values |
| ProductCode | IN, NOT | Multiple | The product code. | ["ecs","oss"] |
| CommodityCode | IN, NOT | Multiple | The commodity code. | ["oss"] |
| RegionCode | IN, NOT | Up to 100 | The region code. | ["cn-hangzhou"] |
| BillingItemCode | IN, NOT | Up to 100 | The billing item code. | ["example_billing_item"] |
| ServiceEntityCode | IN | Up to 100 | The service entity encoding, not the company display name. | ["example_service_entity_code"] |
| LineItemType | IN | Multiple | The line item type encoding, not the display name. The supported range for historical bills may vary. | ["Refund"] |
| ConsumeType | IN | Multiple | The transaction type encoding, not the display name. | ["afterpay"] |
| ChargeType | IN | Single | Subscription: upfront. PayAsYouGo: pay-as-you-go. Specify the field name with the exact capitalization shown here. | ["PayAsYouGo"] |
| InstanceId | IN, PREFIX | Single | The instance ID at the billing granularity. Supports exact match or literal prefix match. | ["i-example001"] |
| ResourceId | IN, PREFIX | Single | The resource ID. Applicable only to new bills. Supports exact match or literal prefix match. | ["i-example001"] |
| InstanceName | IN | Single | The resource name. The query capability depends on product support. | ["example-resource"] |
| ResourceOwnerAccountId | IN | Multiple | The resource ownership account ID. A decimal numeric string. Acts as an additional filter and does not expand the access scope. | ["1234567890123456"] |
| FinanceUnitId | IN | Up to 100 | The financial unit ID. A decimal numeric string. Queries the selected unit and its sub-units. | ["123456"] |
| ResourceGroup | IN, NOT | Up to 100 | The resource group name, not the resource group ID. | ["production"] |
| SplitItemId | IN | Single | The attached resource ID. Supports exact match. | ["example-bucket"] |
| SplitItemName | IN | Single | The attached resource name. Supports exact match. If specified together with SplitItemId, both conditions must be met. | ["example-bucket"] |
| FilterZeroBills | IN | Single | Specifies whether to filter out records with a payable amount of zero. If not specified, no filtering is applied. | ["true"] |
Filtering rules:
Different fields are combined with the AND logic. For multi-value fields, IN matches any value in the list, and NOT excludes the values in the list.
Pass only one object for the same field, and put multiple values in the same Values array. Duplicate fields return InvalidParameter. A single-value field can have only one value after deduplication.
Except for ChargeType, field names are case-insensitive and leading and trailing spaces are removed. Use the spelling in the table. Unrecognized fields are ignored. Do not rely on unlisted fields to narrow the scope.
Empty strings and all-whitespace strings in Values are ignored. Other values have leading and trailing spaces removed and are deduplicated. Empty Values do not participate in filtering and do not mean matching empty values.
PREFIX is case-sensitive. The asterisk (*) and question mark (?) are treated as literal characters. Substring matching at arbitrary positions is not supported.
Tags and cost categories
Different objects in TagFilters and multiple values for the same tag key are matched with the OR logic. Different objects in CostCategoriesFilters and multiple values for the same cost category are also matched with the OR logic. The overall tag filter, the overall cost category filter, and CommonFilters are combined with the AND logic. TagKey and CostCategoriesKey cannot be empty. If the value list is omitted or empty, the filter only requires the existence of the corresponding key or category.
Compatibility rules for private parameters
Private fields are used for internal calls and compatibility links. Period overrides Granularity, BillingMonth, StartBillingDate, and EndBillingDate. CommonFilters overrides matched legacy flat filter parameters. For public calls, prioritize using Period and CommonFilters. NextBatchToken and PrimaryKeys are used for internal multi-hop pagination. The values opaque-token-example, opaque-batch-token-example, and opaque-key-example in the table are placeholder examples. Actual requests must use the values returned by the server exactly as they are. Fields that are not currently populated can be empty. Do not infer that they will definitely be returned based on the examples.
Request example 1: Query a specified split item by month
{
"Action": "ListSplitSummary",
"Version": "2023-09-30",
"Period": {
"Granularity": "MONTHLY",
"StartTime": "2026-09"
},
"CommonFilters": [
{
"FilterField": "ProductCode",
"Operation": "IN",
"Values": [
"oss"
]
},
{
"FilterField": "SplitItemId",
"Operation": "IN",
"Values": [
"example-bucket"
]
}
],
"MaxResults": 20
}
Request example 2: Filter by day combined with resource prefix, financial unit, resource group, tags, and cost categories
{
"Action": "ListSplitSummary",
"Version": "2023-09-30",
"Period": {
"Granularity": "DAILY",
"StartTime": "2026-09-01",
"EndTime": "2026-09-07"
},
"EcIdAccountIds": [
{
"EcId": "123456",
"AccountIds": [
1234567890123456
]
}
],
"CommonFilters": [
{
"FilterField": "ProductCode",
"Operation": "IN",
"Values": [
"ecs"
]
},
{
"FilterField": "ResourceId",
"Operation": "PREFIX",
"Values": [
"i-example"
]
},
{
"FilterField": "FinanceUnitId",
"Values": [
"123456"
]
},
{
"FilterField": "ResourceGroup",
"Operation": "NOT",
"Values": [
"test"
]
},
{
"FilterField": "FilterZeroBills",
"Values": [
"true"
]
}
],
"TagFilters": [
{
"TagKey": "env",
"TagValues": [
"prod"
]
}
],
"CostCategoriesFilters": [
{
"CostCategoriesKey": "business",
"CostCategoriesValues": [
"commerce"
]
}
],
"MaxResults": 20
}
Request example 3: Internal console query parameters
This example only shows the combination of internal query mode and prefetch pagination parameters. It is not a requirement for public call parameters. Do not pass any token in the first request.
{
"Period": {
"Granularity": "DAILY",
"StartTime": "2026-09-01",
"EndTime": "2026-09-07"
},
"EcIdAccountIds": [
{
"EcId": "123456",
"AccountIds": [
1234567890123456
]
}
],
"CommonFilters": [
{
"FilterField": "SplitItemId",
"Operation": "IN",
"Values": [
"example-bucket"
]
}
],
"Console": true,
"QueryMode": "DATA_WITH_COUNT",
"JumpPageSize": 5,
"QueryTrust": true,
"MaxResults": 20
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object for querying split bill summaries. It includes the request ID, pagination information, and split bill summary records. Private fields are for internal use only and their return depends on the query mode and data. |
{} |
|
| NextToken |
string |
The token for querying the next page. If it is not empty, use it as the NextToken for the next request. If it is empty or not returned, the query ends. Even if the number of returned records is less than MaxResults or the current page is empty, you must continue to query as long as the token is not empty. |
opaque-token-example |
| MaxResults |
integer |
The maximum number of records per page used in this query. |
20 |
| Data |
array<object> |
The array of split bill summary records returned in this request. It may be empty if no matching records are found. |
[] |
|
object |
A split bill summary record that describes the billing cycle, product resources, split items, cost attribution, and amounts. Unless otherwise specified, fields in the record are returned as strings. Fields may be empty or not returned. |
{} |
|
| ChargeType |
string |
The display name of the billing method, returned in the requested language, such as Subscription or Pay-as-you-go. Use Subscription or PayAsYouGo for filtering. |
Pay-as-you-go |
| Zone |
string |
The zone. The display name may be returned. |
China (Hangzhou) Zone I |
| ResourceGroup |
string |
The resource group, which is the group where cloud resources are placed as configured by the user in the Resource Management console. |
production |
| ResourceTag |
string |
The resource tags, which are custom tags added by the user to Alibaba Cloud resources. Returned as a string. It can be empty. |
env prod |
| CostCategories |
string |
The cost categories, which indicate the cost category and category value that the record belongs to. Returned as a string. The specific content is subject to the bill record. It can be empty. |
{"business":"commerce"} |
| SplitItemId |
string |
The split item ID, which is the code corresponding to the specific split granularity of the bill. For example, when OSS is split by bucket, this is the bucket code. It may be empty for records that are not split. |
example-bucket |
| SplitItemName |
string |
The split item name, which is the name corresponding to the specific split granularity of the bill. |
example-bucket |
| FinanceUnitName |
string |
The finance unit name. A finance unit is a unit used to group or classify expenses and must be maintained by the user. |
engineering |
| BillingQuantity |
string |
The usage, which is the total usage that is ultimately billed. It must be understood in combination with the product, billing item, and unit. Do not directly add up the values if the units or billing rules are different. |
100 |
| BillingQuantityUnit |
string |
The usage unit, used in conjunction with BillingQuantity. |
GB |
| ChargeDuration |
string |
The duration, which is the total duration of purchasing or using cloud products. It is used when the corresponding billing method includes duration. |
24 |
| ChargeDurationUnit |
string |
The duration unit, used in conjunction with ChargeDuration. |
Hour |
| ListUnitPrice |
string |
The list price, which is the list unit price of the commodity. Whether it has a value depends on the split bill and summary data. Do not multiply the total usage by a unit price to recalculate all bills. |
1 |
| ListPriceUnit |
string |
The price unit, used in conjunction with ListUnitPrice. |
CNY/GB |
| InternetIp |
string |
The public IP address. It is returned only when the product supports it and the relevant resource information can be obtained. |
192.0.2.10 |
| IntranetIp |
string |
The private IP address. It is returned only when the product supports it and the relevant resource information can be obtained. |
10.0.0.10 |
| SavingPlanDeductAmount |
string |
The savings plan deduction amount, which is the committed amount consumed by the savings plan itself. It has a different meaning from SavingPlanDeductListPrice, cannot be used interchangeably, and should not be deducted from the payable amount again. |
0 |
| AmountAfterSavingPlanDeduction |
string |
The amount after savings plan deduction, which equals ListPrice minus SavingPlanDeductListPrice. It may be empty when there is no savings plan deduction data. |
100 |
| AmountAfterPromotionDeduction |
string |
The amount after discount, which is the amount after applying discounts such as official website discounts and contract discounts, but before deducting coupon deductions. When the savings plan deduction data is complete, it equals ListPrice minus SavingPlanDeductListPrice minus PromotionAmount. When there is no savings plan deduction list price, it is calculated as ListPrice minus PromotionAmount. |
90 |
| AmountAfterCouponDeduction |
string |
The amount after coupon deduction, which equals AmountAfterPromotionDeduction minus CouponAmount. |
85 |
| HashKey |
string |
The identifier of the summary record, used as an opaque string. It can be empty. This identifier may change when summary dimensions such as resource groups and tags change. |
example-split-summary-key |
| ResourceId |
string |
The resource ID, which is the identifier used to uniquely identify a resource in a cloud service. |
example-bucket |
| InstanceId |
string |
The instance ID at the billing granularity, which is the dimension for expense statistics and summary when a cloud service generates a bill. It may be different from the resource ID. |
oss-cn-hangzhou-example |
| InstanceName |
string |
The resource name, which is the custom name given by the user to the cloud resource. Whether it has a value depends on whether the product and resource information can be obtained. |
example-resource |
| InstanceSpec |
string |
The specification, which describes the specification of the resource or billing item associated with this record. |
example.spec |
| RegionName |
string |
The region name, which indicates the region selected when the order was placed. |
China (Hangzhou) |
| RegionCode |
string |
The region code, which is the logical region code where the cloud resource is located. |
cn-hangzhou |
| BillingMonth |
string |
The billing month, which is the month to which the expense belongs, in the format of yyyy-MM. |
2026-09 |
| BillingDate |
string |
The billing date, which is the date when the user consumed the cloud service, in the format of yyyy-MM-dd. It has a value only when summarized by day. |
2026-09-01 |
| LineItemType |
string |
The display name of the line item type, which identifies the nature of the expense generated by the bill, such as subscription prepaid expense, subscription unsubscription expense, pay-as-you-go expense, adjustment expense, and round-down expense. Do not use the display name as the LineItemType filter code. |
Pay-as-you-go expense |
| ConsumeType |
string |
The display name of the transaction type, which identifies the transaction corresponding to the bill, such as new purchase, renewal, upgrade, downgrade, unsubscription, pay-as-you-go, and adjustment. Do not use the display name as the ConsumeType filter code. |
Pay-as-you-go |
| ServiceEntity |
string |
The service entity, which is the name of the company that provides the product or service. Alibaba Cloud sells many products, and some products may be provided by different companies. |
Sample service entity |
| ResourceOwnerAccountId |
string |
The resource ownership account ID, which is the ID of the account that actually uses the resource. It may be different from the purchasing account. |
1234567890123456 |
| ResourceOwnerAccountName |
string |
The resource ownership account name. |
owner@example.com |
| ResourcePurchaseAccountId |
string |
The resource purchaser account ID, which is the ID of the account that purchases the resource. |
1234567890123456 |
| ResourcePurchaseAccountName |
string |
The resource purchaser account name. |
buyer@example.com |
| ProductCode |
string |
The product code, which is the unique identifier of a specific cloud service on Alibaba Cloud. |
oss |
| ProductName |
string |
The product name. |
Object Storage Service (OSS) |
| CommodityCode |
string |
The commodity code, which is the unique identifier of a specific commodity under a cloud service. |
oss |
| CommodityName |
string |
The commodity name. |
Sample commodity |
| BillingItemCode |
string |
The billing item code, which is the billing item to which the cloud resource expense belongs. Whether it has a value depends on the split bill records and summary data. |
example_billing_item |
| BillingItemName |
string |
The billing item name. |
Sample billing item |
| Currency |
string |
The currency corresponding to the amounts and prices. |
CNY |
| ListPrice |
string |
The list price, which is the total list price of the selected configuration. |
100 |
| PromotionAmount |
string |
The discount amount, which is the total discount amount on the bill, including official website discounts and contract discounts. |
10 |
| CouponAmount |
string |
The coupon deduction amount. This amount cannot be used for invoicing. |
5 |
| RequireAmount |
string |
The payable amount (tax-inclusive), which is the actual amount the user needs to pay after applying various discounts, savings plan deductions, and coupons. When all amounts are complete, it equals ListPrice minus SavingPlanDeductListPrice minus PromotionAmount minus CouponAmount. Use this field for expense verification. If other amount fields are missing, do not treat null values as zero to calculate the payable amount. |
85 |
| SavingPlanDeductListPrice |
string |
The savings plan deduction list price, which is the total list price of the pay-as-you-go cloud resources deducted when a savings plan deduction is applied. |
0 |
| PurchaseConfiguration |
string |
The billing item selection configuration, which describes the configurations related to the billing item. |
Example configuration |
| RequestId |
string |
The unique identifier of the request. |
00000000-0000-4000-8000-000000000001 |
Examples
Success response
JSON format
{
"NextToken": "opaque-token-example",
"MaxResults": 20,
"Data": [
{
"ChargeType": "Pay-as-you-go",
"Zone": "China (Hangzhou) Zone I",
"ResourceGroup": "production",
"ResourceTag": "env prod",
"CostCategories": "{\"business\":\"commerce\"}",
"SplitItemId": "example-bucket",
"SplitItemName": "example-bucket",
"FinanceUnitName": "engineering",
"BillingQuantity": "100",
"BillingQuantityUnit": "GB",
"ChargeDuration": "24",
"ChargeDurationUnit": "Hour",
"ListUnitPrice": "1",
"ListPriceUnit": "CNY/GB",
"InternetIp": "192.0.2.10",
"IntranetIp": "10.0.0.10",
"SavingPlanDeductAmount": "0",
"AmountAfterSavingPlanDeduction": "100",
"AmountAfterPromotionDeduction": "90",
"AmountAfterCouponDeduction": "85",
"HashKey": "example-split-summary-key",
"ResourceId": "example-bucket",
"InstanceId": "oss-cn-hangzhou-example",
"InstanceName": "example-resource",
"InstanceSpec": "example.spec",
"RegionName": "China (Hangzhou)",
"RegionCode": "cn-hangzhou",
"BillingMonth": "2026-09",
"BillingDate": "2026-09-01",
"LineItemType": "Pay-as-you-go expense for cloud resources",
"ConsumeType": "Pay-as-you-go",
"ServiceEntity": "Sample service entity",
"ResourceOwnerAccountId": "1234567890123456",
"ResourceOwnerAccountName": "owner@example.com",
"ResourcePurchaseAccountId": "1234567890123456",
"ResourcePurchaseAccountName": "buyer@example.com",
"ProductCode": "oss",
"ProductName": "Object Storage Service (OSS)",
"CommodityCode": "oss",
"CommodityName": "Sample commodity",
"BillingItemCode": "example_billing_item",
"BillingItemName": "Sample billing item",
"Currency": "CNY",
"ListPrice": "100",
"PromotionAmount": "10",
"CouponAmount": "5",
"RequireAmount": "85",
"SavingPlanDeductListPrice": "0",
"PurchaseConfiguration": "Sample configuration"
}
],
"RequestId": "00000000-0000-4000-8000-000000000001"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.