The billing report for one billing period across every organisation of the company's billing tenant: the period, totals (users, external users, storage, database storage, services, discount), the active regular users with the bracket that prices them, external users with their login days, OCR, table extraction and LLM usage costs, and any billing override. periods_back 0 is the current period, 1 the previous one, up to 12. Needs View Tenant Usage and View License Billing and View External User Billing and the billing tenant's super_admin role (see GET /company/billing-status). Read-only. include_users=false leaves out the list of regular users, which can be large; every count and total stays.
| |
|---|
| Scope | billing:read (sensitive) |
| Asynchronous | No |
| MCP tool | get_company_billing_report |
| Portal permissions | view_tenant_usage, view_license_billing, view_external_user_billing |
Parameters
| Name | In | Type | Required | Description |
|---|
periods_back | query | integer or null | Optional | 0 for the current billing period, 1 for the previous, up to 12 (default 0). |
include_users | query | boolean or null | Optional | false leaves out the list of regular users; every count and total stays (default true). |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
BillingBracket
| Field | Type | Required | Description |
|---|
currency | string | Required | |
max_users | integer or null | Required | |
min_users | integer | Required | ≥ -2147483648; ≤ 2147483647 |
price_per_user | string | Required | |
BillingDatabaseStorage
| Field | Type | Required | Description |
|---|
billable_gb | string | Required | |
cost | string | Required | |
free_gb | string | Required | The free allowance (50 GB unless the company's billing configuration says otherwise). |
rate_per_gb | string | Required | The database_storage rate in force, converted to ZAR. |
used_bytes | string or null | Required | From the newest daily snapshot of each organisation; null while any organisation has no measurement. |
used_gb | string or null | Required | |
warning | string or null | Required | over_allowance, or approaching_allowance from 80 percent of the allowance; null otherwise. |
BillingExternalUser
| Field | Type | Required | Description |
|---|
billing_fraction | string | Required | The share of a user licence the external user costs this period. |
email | string | Required | |
login_days | integer | Required | ≥ -2147483648; ≤ 2147483647 |
org_name | string or null | Required | |
user_id | string | Required | |
BillingOverride
| Field | Type | Required | Description |
|---|
billing_currency | string | Required | |
billing_mode | string | Required | itemized, fixed_fee or per_page. |
custom_discount_pct | string | Required | |
fixed_monthly_fee | string or null | Required | |
fixed_user_fee | string or null | Required | |
include_services | boolean | Required | |
include_storage | boolean | Required | |
include_users | boolean | Required | |
notes | string or null | Required | |
per_page_rate | string or null | Required | |
per_page_rate_currency | string or null | Required | |
BillingPerPageCosts
| Field | Type | Required | Description |
|---|
currency | string | Required | |
per_page_rate | string | Required | |
total_cost | string | Required | |
total_pages | string | Required | |
BillingRegularUser
| Field | Type | Required | Description |
|---|
email | string | Required | |
join_date | string or null | Required | |
last_active | string or null | Required | |
name | string | Required | |
org_name | string or null | Required | |
surname | string | Required | |
user_id | string | Required | |
BillingRegularUsers
| Field | Type | Required | Description |
|---|
billable_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
bracket | BillingBracket or null | Required | The bracket that prices the billable users; null when none applies. |
min_billable_users | integer | Required | ≥ -2147483648; ≤ 2147483647 |
total_active | integer | Required | ≥ -2147483648; ≤ 2147483647 |
users | array of BillingRegularUser | Required | Every regular user; empty when include_users is false. |
BillingReport
| Field | Type | Required | Description |
|---|
external_users | array of BillingExternalUser | Required | |
override | BillingOverride or null | Required | The billing override active at the report time; null when none. |
per_page_costs | BillingPerPageCosts or null | Required | Null unless the override bills per page. |
period_end | string (date) | Required | |
period_start | string (date) | Required | |
period_start_day | integer | Required | The day of the month the company's billing period starts on. ≥ -2147483648; ≤ 2147483647 |
regular_users | BillingRegularUsers | Required | |
service_costs | BillingServiceCosts or null | Required | |
totals | BillingTotals | Required | |
BillingServiceCost
| Field | Type | Required | Description |
|---|
currency | string | Required | |
quantity | string | Required | |
service_type | string | Required | |
total_cost | string | Required | |
unit | string | Required | |
unit_cost | string | Required | |
BillingServiceCosts
| Field | Type | Required | Description |
|---|
currency | string | Required | |
entries | array of BillingServiceCost | Required | |
total_cost | string | Required | |
BillingStorage
| Field | Type | Required | Description |
|---|
billable_gb | string | Required | |
free_gb | string | Required | |
storage_cost | string | Required | |
total_bytes | string | Required | |
total_gb | string | Required | |
BillingTotals
| Field | Type | Required | Description |
|---|
currency | string | Required | |
database_storage | BillingDatabaseStorage or null | Required | The company's database against its free allowance; its cost is in the grand totals. Null when it could not be read (a warning says so). |
days_elapsed | integer | Required | ≥ -2147483648; ≤ 2147483647 |
days_in_period | integer | Required | ≥ -2147483648; ≤ 2147483647 |
external_mtd | string | Required | |
external_projected | string | Required | |
grand_total_mtd | string | Required | |
grand_total_projected | string | Required | |
regular_total | string | Required | |
storage | BillingStorage | Required | |