Skip to main content

Get the billing report.

GET/api/v1/company/billing-reportbilling:read

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.

Scopebilling:read (sensitive)
AsynchronousNo
MCP toolget_company_billing_report
Portal permissionsview_tenant_usage, view_license_billing, view_external_user_billing

Parameters​

NameInTypeRequiredDescription
periods_backqueryinteger or nullOptional0 for the current billing period, 1 for the previous, up to 12 (default 0).
include_usersqueryboolean or nullOptionalfalse leaves out the list of regular users; every count and total stays (default true).
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json BillingReport
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

BillingBracket​

FieldTypeRequiredDescription
currencystringRequired
max_usersinteger or nullRequired
min_usersintegerRequired≥ -2147483648; ≤ 2147483647
price_per_userstringRequired

BillingDatabaseStorage​

FieldTypeRequiredDescription
billable_gbstringRequired
coststringRequired
free_gbstringRequiredThe free allowance (50 GB unless the company's billing configuration says otherwise).
rate_per_gbstringRequiredThe database_storage rate in force, converted to ZAR.
used_bytesstring or nullRequiredFrom the newest daily snapshot of each organisation; null while any organisation has no measurement.
used_gbstring or nullRequired
warningstring or nullRequiredover_allowance, or approaching_allowance from 80 percent of the allowance; null otherwise.

BillingExternalUser​

FieldTypeRequiredDescription
billing_fractionstringRequiredThe share of a user licence the external user costs this period.
emailstringRequired
login_daysintegerRequired≥ -2147483648; ≤ 2147483647
org_namestring or nullRequired
user_idstringRequired

BillingOverride​

FieldTypeRequiredDescription
billing_currencystringRequired
billing_modestringRequireditemized, fixed_fee or per_page.
custom_discount_pctstringRequired
fixed_monthly_feestring or nullRequired
fixed_user_feestring or nullRequired
include_servicesbooleanRequired
include_storagebooleanRequired
include_usersbooleanRequired
notesstring or nullRequired
per_page_ratestring or nullRequired
per_page_rate_currencystring or nullRequired

BillingPerPageCosts​

FieldTypeRequiredDescription
currencystringRequired
per_page_ratestringRequired
total_coststringRequired
total_pagesstringRequired

BillingRegularUser​

FieldTypeRequiredDescription
emailstringRequired
join_datestring or nullRequired
last_activestring or nullRequired
namestringRequired
org_namestring or nullRequired
surnamestringRequired
user_idstringRequired

BillingRegularUsers​

FieldTypeRequiredDescription
billable_countintegerRequired≥ -2147483648; ≤ 2147483647
bracketBillingBracket or nullRequiredThe bracket that prices the billable users; null when none applies.
min_billable_usersintegerRequired≥ -2147483648; ≤ 2147483647
total_activeintegerRequired≥ -2147483648; ≤ 2147483647
usersarray of BillingRegularUserRequiredEvery regular user; empty when include_users is false.

BillingReport​

FieldTypeRequiredDescription
external_usersarray of BillingExternalUserRequired
overrideBillingOverride or nullRequiredThe billing override active at the report time; null when none.
per_page_costsBillingPerPageCosts or nullRequiredNull unless the override bills per page.
period_endstring (date)Required
period_startstring (date)Required
period_start_dayintegerRequiredThe day of the month the company's billing period starts on. ≥ -2147483648; ≤ 2147483647
regular_usersBillingRegularUsersRequired
service_costsBillingServiceCosts or nullRequired
totalsBillingTotalsRequired

BillingServiceCost​

FieldTypeRequiredDescription
currencystringRequired
quantitystringRequired
service_typestringRequired
total_coststringRequired
unitstringRequired
unit_coststringRequired

BillingServiceCosts​

FieldTypeRequiredDescription
currencystringRequired
entriesarray of BillingServiceCostRequired
total_coststringRequired

BillingStorage​

FieldTypeRequiredDescription
billable_gbstringRequired
free_gbstringRequired
storage_coststringRequired
total_bytesstringRequired
total_gbstringRequired

BillingTotals​

FieldTypeRequiredDescription
currencystringRequired
database_storageBillingDatabaseStorage or nullRequiredThe 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_elapsedintegerRequired≥ -2147483648; ≤ 2147483647
days_in_periodintegerRequired≥ -2147483648; ≤ 2147483647
external_mtdstringRequired
external_projectedstringRequired
grand_total_mtdstringRequired
grand_total_projectedstringRequired
regular_totalstringRequired
storageBillingStorageRequired