GET
/
accounting
/
gettotaldue
Get Total Due Amount
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/gettotaldue \
  --header 'Authorization: Bearer <token>'
{
"message": "success",
"totalGross": 150000.5,
"totalPaid": 100000,
"totalDue": 50000.5,
"userCount": 125,
"metadata": {
"calculationMethod": "cached",
"calculationTime": 45,
"dataAvailability": "complete",
"fallbackReason": null
}
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

method
enum<string>
default:auto

Calculation method to use for retrieving totals

Available options:
cache,
bigquery,
auto

Response

200
application/json

Total due amount retrieved successfully

The response is of type object.