Get Transactions Summary
Get a summary of transactions with aggregated data.
Method: GET
Query Parameters:
Parameter | Type | Description |
---|---|---|
startDate | string | Filter by start date (ISO format) |
endDate | string | Filter by end date (ISO format) |
groupBy | string | Group results by time period |
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/transactions/summary \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"totalAmount": 123,
"currency": "<string>",
"count": 123,
"byType": [
{
"totalAmount": 123,
"currency": "<string>",
"count": 123,
"byType": [
{
"type": "<string>",
"amount": 123,
"count": 123
}
]
}
],
"timeSeries": [
{
"period": "<string>",
"amount": 123,
"count": 123
}
]
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Filter by start date (ISO format)
Filter by end date (ISO format)
Group results by time period
day
, week
, month
, year
Transactions summary retrieved successfully
The response is of type object
.
curl --request GET \
--url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/transactions/summary \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"totalAmount": 123,
"currency": "<string>",
"count": 123,
"byType": [
{
"totalAmount": 123,
"currency": "<string>",
"count": 123,
"byType": [
{
"type": "<string>",
"amount": 123,
"count": 123
}
]
}
],
"timeSeries": [
{
"period": "<string>",
"amount": 123,
"count": 123
}
]
}
}