curl --request GET \
--url https://api.royalti.io/accounting/{id}/stats \
--header 'Authorization: Bearer <token>'{
"Royalty_Share": 1135.28,
"paid": 100,
"due": 1035.28
}Get User Accounting Statistics
curl --request GET \
--url https://api.royalti.io/accounting/{id}/stats \
--header 'Authorization: Bearer <token>'{
"Royalty_Share": 1135.28,
"paid": 100,
"due": 1035.28
}| Parameter | Type | Description |
|---|---|---|
| id | string | The TenantUser ID |
| Parameter | Type | Description |
|---|---|---|
| include | string | Include additional data (e.g., ‘royalty’ for detailed royalty summary) |
| forceRefresh | boolean | Force recalculation even if cached data exists |
const response = await fetch('https://api.royalti.io/accounting/example-id/stats', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
TenantUser ID
Include additional data (use 'royalty' for detailed royalty breakdown)
royalty Force recalculation even if cached data exists
User accounting statistics retrieved successfully
Total royalty share amount for this user
1135.28
Amount already paid to the user
100
Amount currently due to the user
1035.28
Detailed royalty breakdown (included when include=royalty)
Calculation metadata from enhanced accounting calculator
Show child attributes