curl --request POST \
--url https://api.royalti.io/accounting/users/{id}/recalculate \
--header 'Authorization: Bearer <token>'{
"message": "User accounting update queued successfully",
"jobId": "job-uuid-123",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"status": "queued"
}Trigger User Accounting Recalculation
curl --request POST \
--url https://api.royalti.io/accounting/users/{id}/recalculate \
--header 'Authorization: Bearer <token>'{
"message": "User accounting update queued successfully",
"jobId": "job-uuid-123",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"status": "queued"
}| Parameter | Type | Description |
|---|---|---|
| id | string | The TenantUser ID to recalculate |
| Parameter | Type | Description |
|---|---|---|
| forceRefresh | boolean | Force refresh even if data is recent (optional) |
const response = await fetch('https://api.royalti.io/accounting/users/example-id/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}"
TenantUser ID
Force refresh even if data is recent
User accounting recalculation queued successfully