Accounting
Get Total Due Amount
Get Total Due Amount
GET
Get Total Due Amount
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Get Total Due Amount Retrieve the total amount due across all tenant users (excluding the tenant owner). This endpoint now supports multiple calculation methods for optimal performance:- cache: Uses the UserAccounting table cache for fast retrieval (10-50ms)
- bigquery: Uses BigQuery for comprehensive calculation (500-2000ms)
- auto: Automatically tries cache first, falls back to BigQuery if needed (default)
- Required role:
adminor higher
Code Examples
Authorizations
Query Parameters
Response
Total due amount retrieved successfully
Stage-2 addition (attribution unallocated-revenue spec).
Gross vs allocated (payable) vs unallocated (gap +
unresolved) revenue from the tenant's latest committed
attribution run. Absent/null when the tenant has
never committed a run, or when the read failed (see
unallocatedError) — the rest of the total-due figures
are still returned in either case.