Export and subscribe to bills
Manually export bills from the console, or subscribe to push bill data automatically to OSS or MaxCompute.
Manual export vs. automatic subscription
The following table compares manual export and bill subscription.
|
Item |
||
|
Scenarios |
One-time queries and downloads for ad-hoc reconciliation or archiving. |
Periodic, automatic retrieval for building a data lake, big data analytics, or automated reporting. |
|
Timeliness |
On-demand retrieval of current or historical data. |
Automatic delivery on a preset schedule (daily or monthly). |
|
Data Format |
PDF, CSV |
CSV (.zip compressed), MaxCompute tables |
|
Automation Level |
Requires manual operation in the console. |
Configure once for continuous, automatic execution. |
|
Cost |
Free of charge |
Charges apply for storage and compute in OSS or MaxCompute. |
Manual export
Export bill data for one or more months.
Export bill summary
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 only the bill data for the accounts selected on the Bill Overview page.
-
All: Exports the bill data for all accounts that you have permission to view (merged into a single file).
-
-
Select Export Type:
-
Monthly bill (PDF): A bill in PDF format that contains the dedicated financial seal of Alibaba Cloud and is used for financial settlement and reimbursement. The bill for a month is generated after 12:00 on the 2nd of the following month.
-
Cost Summary in CSV: Consumption details in CSV format, aggregated by dimensions such as account and product.
-
-
Click OK. The system starts to generate the file.
-
After the file is generated, go to the Export Record page to download it.
at the bottom of the current page select By Resource Purchase Account, By Product, By Organization, or By Service Entity, and click the
button in the upper-right corner of the summary table to export a monthly bill summarized by the selected dimension.
Reports exported By Product, By Organization, or By Service Entity include only summary data for the enterprise, organization, or 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
Consumption details provide the data required for cost analysis. This data includes resource instances, billable items, usage, and the amount payable. On the Bill Details page, click the
icon in the upper-right corner to open the export dialog box:
-
Select the Exported Content:
-
Current List: Exports only the filtered bill data from the list on the Bill Details page.
-
All Items: Exports the bill data for the selected billing period for all accounts that you have permission to view. The data is merged into a single file.
-
-
If you set Exported Content to All Items, select the Billing Month to export.
-
As needed, select Include Bills Whose Amount Payable Is 0.
-
Click OK. The system starts to generate the file.
-
After the file is generated, go to the Export Record page to download it.
Export usage details
Usage details record the specific usage of cloud products, such as Elastic Compute Service (ECS) runtime duration and Object Storage Service (OSS) storage capacity. On the Bill Details page, click View Usage Details in the upper-right corner to go to the View Usage Details page.
-
Set filter conditions such as Time Period, Commodity Name, Billable Item, and Billable Item.
-
Click Export CSV. The system starts to generate the file.
-
After the file is generated, go to the Export Record page to download it.
Automatic subscription
Subscriptions deliver bill data automatically on a recurring schedule.
-
OSS: Stores bill files in an OSS bucket for archiving and programmatic processing.
-
MaxCompute: Imports bill data into MaxCompute for analytics and BI integration. Supports DataWorks for visual queries.
Subscribe to OSS
Configure a subscription through the console or the Alibaba Cloud CLI. To use the API, see theOpenAPI Portal.
Console
on the Bill Subscription page, click Create Bill Subscription, and then select OSS Subscription.
Procedure
-
-
Select the Export File type to subscribe to:
-
Monthly bill (PDF): An official financial document summarized by calendar month. It contains the official financial seal of Alibaba Cloud and can be used for settlement and reimbursement.
-
Billing item detail: The most granular consumption data — resource instances, billing items, usage, and payable amounts.
-
Split Bill: Bills split by cost centers and allocation rules, used for internal cost accounting.
-
Cost Details: The cost composition of each cost center, aggregated from the split bill detail.
-
Standard Bill FOCUS: A standardized bill data model with well-structured fields, facilitating integration with multi-cloud and multi-system environments.
-
Billing Item Details (By Billing Period): Provides detailed consumption records for each billing item, including usage, unit price, and payable amount.
-
Billing Item Details (By Day): Aggregates the consumption of each billing item on a daily basis and displays the total daily cost.
-
Billing Item Details (By Billing Cycle) : Aggregates the consumption of each billing item over a billing cycle (typically one month) and displays the total cost for the cycle.
-
Instance Details (By Billing Period): Provides detailed consumption records for each resource instance, including instance ID, billing item, usage, unit price, and total price.
-
Instance Details (By Day): Aggregates the consumption of each resource instance on a daily basis and displays the total daily cost.
-
Instance Details (By Billing Cycle): Aggregates the consumption of each resource instance over a billing cycle (typically one month) and displays the total cost for the cycle.
-
Split Bill (By Day): Aggregates split bills on a daily basis and splits costs by dimensions such as cost centers and tags.
Note-
If invited to use the upgraded billing feature, upgrade to the new detailed data version promptly.
-
Each Export File type supports only one bill subscription, and a type that has been used is automatically grayed out and cannot be selected again.
-
-
Set the Start Billing Month.
-
Specify an existing OSS bucket and destination path. The system creates the path if it does not exist.
-
Click Create to complete the task creation.


-
On the Bill Subscription page, view the subscription records.
The subscription list shows columns including Subscribed file, File Name/Table Name, Subscription method, Subscription start cycle, OSS bucket, OSS directory, Subscription time, and Actions. Click View or Cancel in the Actions column to manage subscriptions.
Delivery schedule
|
Bill type |
Daily delivery (UTC+8) |
Final monthly delivery (UTC+8) |
|
billing item detail |
Full detailed data for the current month to date |
By 18:00 on the 3rd of the following month |
|
split bill detail |
Full detailed data for the current month to date |
By 18:00 on the 4th of the following month |
|
cost detail |
Full detailed data for the current month to date |
By 18:00 on the 4th of the following month |
|
Standard Bill FOCUS |
Full detailed data for the current month to date |
By 18:00 on the 4th of the following month |
|
PDF monthly bill |
Not supported |
By 18:00 on the 3rd of the following month |
File naming convention
PDF monthly bills use .pdf format; all others use .csv. Large bills are automatically split into multiple files.
|
Subscription type |
Naming convention |
Directory structure |
Example |
|
|
|
|
|
|
|
|
-
The actual files exported to OSS may be compressed in
.zipformat. -
If the page does not distinguish between the new and old versions of detailed data when you select Export File, the file naming convention is based on the old version.
CLI
Create a billing subscription by calling the SubscribeBillToOSS operation. If this is your first time using an OSS subscription, you must grant the AliyunConsumeDump2OSSRole role. You can use one-click authorization to do this. If the authorization is revoked, file delivery stops and you must grant the permissions again.
Request parameters
|
Parameter |
Type |
Required |
Description |
|
SubscribeType |
String |
Yes |
The subscription type:
|
|
SubscribeBucket |
String |
Yes |
The name of an existing OSS bucket. |
|
BucketOwnerId |
Long |
No |
The ID of the account that owns the bucket. This is required for cross-account scenarios. |
|
BucketPath |
String |
No |
The destination directory. The system creates this directory if it does not exist. |
|
BeginBillingCycle |
String |
No |
The start month of the subscription in YYYY-MM format. |
|
MultAccountRelSubscribe |
String |
No |
The multi-account subscription scope, for example, |
Subscription example
Use the Alibaba Cloud CLI to call the SubscribeBillToOSS operation. What is Alibaba Cloud CLI?.
# Send a subscription request.
aliyun bssopenapi SubscribeBillToOSS --SubscribeType 'your-billing-type' --SubscribeBucket 'your-bucket-name' --BucketPath 'your-bucket-path'
# Sample successful response.
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "55C79633-4F63-3839-8815-XXXXXXXXXX",
"Success": true
}
Verify the subscription
Use the Alibaba Cloud CLI to query billing subscription records for an OSS bucket by calling the QueryBillToOSSSubscription operation.
# Send a subscription query request.
aliyun bssopenapi QueryBillToOSSSubscription --region 'your-region'
# Sample 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 billing center (Consume) failed to access your OSS resources by using the |
|
DuplicateSubscription |
A subscription for this bill type already exists. |
|
ExportFileToOSSFailed |
The OSS bucket may not exist. You must create the bucket first. |
OSS charges storage fees based on file size and duration. Use OSS lifecycle rules to clean up daily snapshots and retain only final monthly bills.
Subscribe to MaxCompute
Prerequisites
-
You have been invited to use the upgraded billing feature.
-
You have activated MaxCompute and DataWorks in the same region.
-
Data scope: up to 12 months after enabling the upgraded billing feature.
Procedure
on the Bill Subscription page, click Create Bill Subscription, and select MaxCompute.
-
Note
-
If you have already activated MaxCompute and DataWorks, ensure that they are in the same region. Select the region where they are activated and complete the authorization.
-
Big data analytics tools can be activated in only one region. Activating in China (Shanghai), for example, prevents subscribing to bill data in other regions.
-
-
Select Subscription Content:
-
Billing item detail: Corresponds to the content on the Bill Details page.
-
Split bill detail: Corresponds to the content on the Split Bill page.
-
Cost detail: Corresponds to the content on the Cost Details page.
-
-
Set the Start Billing Month.
-
Click Create to complete the task creation.
-
After subscribing, bill data is synchronized to a MaxCompute table in a project named
bill_{Account_UID}. -
By 18:00 each day, the system delivers the complete dataset through the previous day. By 18:00 on the 3rd of the following month, it delivers the final, complete monthly dataset. Data is distinguished by partition name in the format
ds=Delivery_Month/version=Delivery_Time.
On the MaxCompute tab, complete the following three configurations in order: Activate product (select a region, complete authorization, and use one-click creation), Select subscription content (select billing item detail for Exported file), and Select subscription billing cycle (set the Subscription start month, with Data format as
odps table). -
-
On the Bill Subscription page, view your subscription records and click View to go to the DataWorks data analysis page, where you can use SQL statements to query and analyze the subscribed bill data.
Delivery schedule
By 18:00 each day, the system delivers the full dataset for the previous day. By 18:00 on the 3rd of the following month, it delivers the final monthly data. The data is distinguished by partition.
MaxCompute table naming convention
-
Project:
bill_{Account_UID}
|
Bill type |
MaxCompute table name |
|
billing item detail |
billing_item_detail_for_billing_period |
|
split bill detail |
split_item_detail_for_billing_period |
|
cost detail |
cost_item_detail_for_billing_period |
Subscribing to and analyzing bill data incurs the following fees:
-
Storage fees (charged by MaxCompute): Applies to bill data stored in MaxCompute tables. Billing items and billing methods.
-
Compute fees (charged by MaxCompute): Applies to SQL analysis queries. Billing items and billing methods.
FAQ
Not receiving files from bill subscription
Troubleshoot as follows:
-
Check the authorization status: Ensure that the service authorization for OSS or MaxCompute is valid.
-
Confirm the delivery time: Ensure that the daily data delivery time has passed (after 18:00 UTC+8).
-
Check the destination configuration: Ensure that the OSS bucket or MaxCompute project exists and that the access policy is configured correctly.