You can manually export bills from the console or use the subscription feature to automatically push billing data to OSS or MaxCompute.
Manual export vs. automatic subscription
The following table compares manual export and bill subscription.
Comparison dimension | ||
Scenarios | One-time queries and downloads for temporary reconciliation or archiving | Periodic automated data retrieval for data lake construction, big data analytics, or automated reporting |
Timeliness | Immediate operation to retrieve current or historical data | Automatically pushed on a preset schedule (daily/monthly) |
Data format | PDF, CSV | CSV (.zip compressed), MaxCompute tables |
Automation level | Requires logging into the console to perform manual operations | One-time configuration for continuous automatic execution |
Cost | Free | Subscribing to OSS or MaxCompute incurs storage and compute fees |
Manual export
Manual export is suitable for retrieving billing data for a specific time range. You can export bills for one or multiple months.
Export monthly bill summary
Legacy Console
On the Monthly Bill Overview page, click Export Bill File in the upper-right corner to open the export dialog box:

Select Export Account Content:
Selected Accounts: Exports billing data only for accounts selected on the Monthly Bill Overview page.
All Accounts: Exports billing data for all accounts you have permission to view (merged into one file).
Select the Billing Cycle to export.
Select Export Content:
Monthly Bill Overview CSV: Settlement billing data aggregated by billing month. The current month's bill becomes available after 12:00 on the 3rd of the following month.
Product Consumption Summary CSV: CSV format with consumption details aggregated by account, product, and other dimensions.
Monthly Summary Bill: PDF format suitable for financial settlement. The current month's bill becomes available after 12:00 on the 3rd of the following month.
Click OK. The system starts generating the file.
After the file is generated, go to the Export Records page to download it.
New Console
On the Overview of Monthly Bill page, click Export Bill in the upper-right corner to open the export dialog box:

Select Export Data by Scope:
Selected Accounts: Exports billing data only for accounts selected on the Bill Overview page.
All: Exports billing data for all accounts you have permission to view (merged into one file).
Select Export Type:
Monthly Bill PDF: PDF format, suitable for financial settlement . The current month's bill becomes available after 12:00 on the 3rd of the following month.
Cost Summary in CSV: CSV format with consumption details aggregated by account, product, and other dimensions.
Click OK. The system starts generating the file.
After the file is generated, go to the Export Record page to download it.
If you are using the new Expenses and Costs console, you can select By Resource Purchase Account, By Product, By Organization, or By Service Entity below the current page, then click the
button in the upper-right corner of the summary table to export monthly bills aggregated by different dimensions.
Reports exported by By Product, By Organization, or By Service Entity include only aggregated data within the enterprise/organization/account scope set at the top of the page and do not contain specific account information.

After the file is generated, go to the Export Record page to download it.
Export consumption details
Legacy Console
Consumption details include granular data such as resource instances, billing items, usage, and payable amounts. This data forms the basis for cost analysis. On the Bill Details page, click the Export Bill CSV button in the upper-right corner to open the export dialog box:

Select Export Content:
Selected Items: Exports only the billing data filtered in the export list on the Bill Details page.
All Content: Exports billing data for all accounts you have permission to view for the selected billing cycle (merged into one file).
If you select All Content for Export Content, select the Billing Cycle to export.
Optionally, check Include Payable Amount = 0.
Click OK. The system starts generating the file.
After the file is generated, go to the Export Records page to download it.
New Console
Consumption details include granular data such as resource instances, billing items, usage, and payable amounts. This data forms the basis for cost analysis. On the Bill Details page, click the
icon in the upper-right corner to open the export dialog box:

Select Exported Content:
Current List: Exports only the billing data filtered in the export list on the Bill Details page.
All Items: Exports billing data for all accounts you have permission to view for the selected billing cycle (merged into one file).
If you select All Items for Exported Content, select the Billing Month to export.
Optionally, check Include Bills Whose Amount Payable Is 0.
Click OK. The system starts generating the file.
After the file is generated, go to the Export Record page to download it.
Export usage details
Legacy Console
Usage details record specific usage metrics for cloud products, such as ECS runtime duration and OSS storage capacity. On the Bill Details page, click the View Usage Details tab in the upper-left corner to go to the View Usage Details page.

Set filters such as Product, Metering Specification, Usage Time, and Metering Granularity.
Click Export CSV. The system starts generating the file.
After the file is generated, go to the Export Records page to download it.
New Console
Usage details record specific usage metrics for cloud products, such as ECS runtime duration and OSS storage capacity. On the Bill Details page, click View Usage Details to go to the View Usage Details page.

Set filters such as Time Period, Commodity Name, Billable Item, Billable Item, and time range.
Click Export CSV. The system starts generating the file.
After the file is generated, go to the Export Record page to download it.
Automatic subscription
Bill subscription enables periodic, automated delivery of data without manual intervention. Bill subscription supports two channels:
OSS: Automatically stores bill files in a specified OSS bucket for data archiving and programmatic processing.
MaxCompute: Imports bill data into MaxCompute for big data analytics. You can use DataWorks for visual queries. This option is suitable for big data analytics and BI integration.
Subscribe to OSS
You can configure subscription tasks through the console or API. The following sections describe console and CLI subscription operations. For more information about API subscription, see OpenAPI Explorer.
Through the console
If you are using the new Expenses and Costs console, you can go to the Bill Subscription page and click Create Bill Subscription, then select OSS Subscription.
Procedure
Select the Export File type to subscribe to:
Monthly Bill PDF: Official financial document aggregated by calendar month, used for settlement and reimbursement.
Billing Item Bill Details: Most granular consumption data, including resource instances, billing items, usage, and payable amounts. This data forms the basis for cost analysis.
Split Bill Details: Bills split by cost center and allocation rules for internal cost accounting.
Cost Details: Aggregated cost composition for each cost center based on split bill details.
Standard Bill FOCUS: Standardized bill data model with consistent fields for easy integration across clouds and systems.
Billing Item Detail Bill: Detailed consumption records for each billing item, including usage, unit price, and payable amount.
Billing Item Bill Daily Summary: Daily aggregation of consumption for each billing item, showing total daily costs.
Billing Item Bill Billing Cycle Summary: Monthly aggregation of consumption for each billing item, showing total costs for the billing cycle.
Instance Detail Bill: Detailed consumption records for each resource instance, including instance ID, billing item, usage, unit price, and total price.
Instance Bill Daily Summary: Daily aggregation of consumption for each resource instance, showing total daily costs.
Instance Bill Billing Cycle Summary: Monthly aggregation of consumption for each resource instance, showing total costs for the billing cycle.
Split Bill Daily Summary: Daily aggregation of split bills, with costs allocated by cost center, tag, and other dimensions.
NoteIf you have been invited to test the upgraded bill version, upgrade from legacy detail data to the new version as soon as possible.
You can create only one bill subscription per Export File type. Already subscribed types are automatically grayed out and cannot be selected again.
Set the Start Billing Month.
Specify an existing OSS bucket name and set the destination storage path (the system automatically creates the path if it does not exist).
Click Create to complete the task.


View subscription records on the Bill Subscription page.

Push schedule
Bill type | Daily push (UTC+8) | Monthly final push (UTC+8) |
Billing item bill details | Full detail data up to the current day | Before 18:00 on the 3rd of the following month |
Split bill details | Full detail data up to the current day | Before 18:00 on the 4th of the following month |
Cost details | Full detail data up to the current day | Before 18:00 on the 4th of the following month |
Standard bill FOCUS | Full detail data up to the current day | Before 18:00 on the 4th of the following month |
Monthly bill PDF | Not supported | Before 18:00 on the 3rd of the following month |
File naming convention
Monthly bill PDF files use the .pdf format. All other file types are .csv files. If the data volume is large, the system automatically splits a single export into multiple files.
Subscription type | File naming convention | Directory structure | Example |
|
|
|
|
|
|
|
|
Files exported to OSS may be compressed into
.zipformat.If the console does not distinguish between new and legacy detail data when you select Export File, the legacy naming convention applies.
Through CLI
Create a bill subscription using the SubscribeBillToOSS API operation. For your first OSS subscription, grant the AliyunConsumeDump2OSSRole role to the subscription user. Use one-click authorization. If authorization is revoked, the system stops pushing files and you must re-authorize.
Request parameters
Parameter | Type | Required | Description |
SubscribeType | text | Yes | Subscription type:
|
SubscribeBucket | Text | Yes | Name of an existing OSS bucket |
BucketOwnerId | value | No | Bucket owner account ID (required for cross-account scenarios) |
BucketPath | Text | No | Storage directory path (automatically created if it does not exist) |
BeginBillingCycle | Text | No | Subscription start billing cycle in YYYY-MM format |
MultAccountRelSubscribe | Text | No | Multi-account subscription scope, such as |
Subscription example
Use the aliyun CLI to send a subscription request via the SubscribeBillToOSS API operation. For more information about the CLI, see What is Alibaba Cloud CLI.
# Send subscription request
aliyun bssopenapi SubscribeBillToOSS --SubscribeType 'your-billing-type' --SubscribeBucket 'your-bucket-name' --BucketPath 'your-bucket-path'
# Successful response
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "55C79633-4F63-3839-8815-XXXXXXXXXX",
"Success": true
}Verify subscription success
Use the aliyun CLI to query OSS subscription records via the QueryBillToOSSSubscription API operation.
# Send subscription query request
aliyun bssopenapi QueryBillToOSSSubscription --region 'your-region'
# Successful response
{
"Code": "Success",
"Data": {
"AccountID": "XXXX",
"AccountName": "XXXX",
"Items": {
"Item": [
{
"BucketOwnerId": XXXX,
"BucketPath": "bill-data/",
"MultAccountRelSubscribe": "MA",
"SubscribeBucket": "XXXX",
"SubscribeLanguage": "en",
"SubscribeTime": "2026-01-27 16:42:49",
"SubscribeType": "BillingItemDetailForBillingPeriod"
}
]
}
},
"Message": "Successful!",
"RequestId": "B1CCC55E-CD6F-3ABC-AABC-XXXXXXXX",
"Success": true
}Common error codes
Error code | Cause |
OssPermissionDenied | The Expenses and Costs service failed to access your OSS resources using the |
DuplicateSubscription | This bill type is already subscribed. No duplicate subscription is needed. |
ExportFileToOSSFailed | The OSS bucket might not exist. Create it first. |
Storing bill files in OSS incurs storage fees charged by OSS based on file size and storage duration. To optimize costs, configure an OSS lifecycle rule to periodically clean up daily snapshot files and retain only the monthly final bills.
Subscribe to MaxCompute
Prerequisites
You have been invited to test the upgraded bill version.
You have activated MaxCompute and DataWorks in the same region.
Subscription scope: Data generated after enabling the upgraded bill version, up to 12 months.
Procedure
If you are using the new Expenses and Costs console, you can go to the Bill Subscription page and click Create Bill Subscription, then select MaxCompute.
- Note
If you have already activated MaxCompute and DataWorks, ensure they are in the same region. Select the activated region to complete authorization.
You can activate the big data analytics tool in only one region. For example, if China (Shanghai) is activated, you cannot subscribe to bill data in other regions.
Select Subscription Content:
Billing item bill details: Corresponds to the content on the Bill Details page.
Split bill details: Corresponds to the content on the Split Bill page.
Cost details: Corresponds to the Cost Details page.
Set the Start Billing Month.
Click Confirm Creation to complete the task.
After subscription, related bill data synchronizes to the specified MaxCompute table in the project space: bill_{subscription_account}.
Full data up to the previous day pushes before 18:00 daily. The final monthly full data pushes again at 18:00 on the 3rd of the following month. Data is distinguished by partition name in the format ds=push_month/version=push_timestamp.

View subscription records on the Bill Subscription page. Click View to go to the DataWorks data analytics page and query or analyze subscribed bill data using SQL statements.

Push schedule
Full data up to the previous day pushes before 18:00 daily. The final monthly data pushes before 18:00 on the 3rd of the following month, distinguished by partition.
MaxCompute table naming convention
Project space:
bill_{Account_UID}
Bill type | MaxCompute table name |
Billing item bill details | billing_item_detail_for_billing_period |
Split bill details | split_item_detail_for_billing_period |
Cost details | cost_item_detail_for_billing_period |
Subscribing to and analyzing bill data incurs the following fees:
Storage fees (charged by MaxCompute): Storing bill data in MaxCompute tables incurs storage fees. For details, see Billable items and billing methods.
Compute fees (charged by MaxCompute): Executing SQL statements for data analytics incurs compute fees. For details, see Billable items and billing methods.
FAQ
I created a bill subscription but did not receive files. What should I do?
Follow these steps to troubleshoot:
Check authorization status: Confirm that OSS or MaxCompute service authorization is valid.
Verify push schedule: Check if the daily data push time (after 18:00 UTC+8) has passed.
Review destination configuration: Confirm that the OSS bucket or MaxCompute project exists and has correct access policies.





