curl --request GET \
--url https://api.royalti.io/accounting/transactions/monthly \
--header 'Authorization: Bearer <token>'[
{
"month": "2024-08-01",
"transactions": {
"payment": 5000,
"revenue": 12500.5,
"expense": 1500.25,
"net": 6000.25
}
},
{
"month": "2024-07-01",
"transactions": {
"payment": 4500,
"revenue": 11000,
"expense": 1200,
"net": 5300
}
}
]Get Monthly Transaction Breakdown
curl --request GET \
--url https://api.royalti.io/accounting/transactions/monthly \
--header 'Authorization: Bearer <token>'[
{
"month": "2024-08-01",
"transactions": {
"payment": 5000,
"revenue": 12500.5,
"expense": 1500.25,
"net": 6000.25
}
},
{
"month": "2024-07-01",
"transactions": {
"payment": 4500,
"revenue": 11000,
"expense": 1200,
"net": 5300
}
}
]| Parameter | Type | Description |
|---|---|---|
| start | string | Start date for filtering (ISO format YYYY-MM-DD) |
| stop | string | End date for filtering (ISO format YYYY-MM-DD) |
const response = await fetch('https://api.royalti.io/accounting/transactions/monthly', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Start date for filtering transactions (ISO format YYYY-MM-DD)
End date for filtering transactions (ISO format YYYY-MM-DD)