Get Total Due Amount
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)
| Parameter | Type | Description |
|---|---|---|
| method | string | Calculation method to use (cache, bigquery, auto) |
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Query Parameters
Calculation method to use for retrieving totals
Available options:
cache, bigquery, auto Response
Total due amount retrieved successfully
Example:
"success"
Total gross earnings across all users
Example:
150000.5
Total amount already paid to users
Example:
100000
Total amount currently due to users
Example:
50000.5
Number of users included in the calculation
Example:
125
Additional information about the calculation