curl --request POST \
--url https://api.royalti.io/accounting/tenant/recalculate \
--header 'Authorization: Bearer <token>'{
"message": "Tenant accounting update queued successfully",
"jobId": "job-uuid-456",
"tenantId": 123,
"status": "queued",
"info": {
"batchSize": 100,
"estimatedTime": "~5 minutes for 500 users"
}
}Trigger Tenant-Wide Accounting Recalculation
curl --request POST \
--url https://api.royalti.io/accounting/tenant/recalculate \
--header 'Authorization: Bearer <token>'{
"message": "Tenant accounting update queued successfully",
"jobId": "job-uuid-456",
"tenantId": 123,
"status": "queued",
"info": {
"batchSize": 100,
"estimatedTime": "~5 minutes for 500 users"
}
}| Parameter | Type | Description |
|---|---|---|
| batchSize | integer | Number of users to process per batch (default: 100) |
const response = await fetch('https://api.royalti.io/accounting/tenant/recalculate', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Number of users to process per batch
1 <= x <= 500Tenant accounting recalculation queued successfully