- 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) |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Query Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
method | string | query | ❌ | Calculation method to use for retrieving totals |
Responses
✅ 200 - Total due amount retrieved successfully
cachedResponse
bigqueryResponse
⚠️ 400 - undefined
⚠️ 401 - undefined
❌ 500 - undefined
Tags
Accounting
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