Billing
Download Categorized Billing
Changed onDownloads a csv file with categorized billing information for the organization within the specified date range and filters. Downloaded CSV file named capella-categorized-billing-{organizationId}-{startDate}_to_{endDate}.csv with the following columns:
- startDate : The start date
- endDate : The end date
- category: The category name
- creditSpend: Usage in Capella credits for this category
- currencySpend: Usage in dollar or any billingCurrency amount for this category
- contributionPercent: contributionPercent of total consumption
- billingCurrency: currency
Total - The final row of the CSV will contain totals across all categories over the full time period
In order to access this endpoint, the provided API key must have at least one of the following roles:
- Organization Owner
- Billing Admin
- Billing Viewer To learn more, see Organization, Project, and Database Access Overview.
post/v4/organizations/{organizationId}/billing/download
Request
- Base URLhttps://cloudapi.cloud.couchbase.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"startDate": "2025-04-01",
"endDate": "2025-04-30",
"filters": {
"categories": [
"analyticsCompute",
"analyticsStorage"
],
"projectIds": [
"ffffffff-aaaa-1414-eeee-000000000000",
"ffffffff-aaaa-1414-eeee-000000000001"
],
"instanceIds": [
"ffffffff-aaaa-1414-eeee-000000000000",
"ffffffff-aaaa-1414-eeee-000000000001"
]
}
}Response
Successfully downloaded the categorized billing information as a CSV file.
Changes
- info
added the new
aiServicesAgentMemoryenum value to the request property// - info
added the new
aiServicesMcpServerenum value to the request property// - info
added the new
operationalExpressScalingenum value to the request property//
- info