Skip to main content
GET
/
accounting
/
transactions
/
summary
Get Transactions Summary
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
      }
    ]
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/accounting/transactions/summary', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

startDate
string<date-time>

Filter by start date (ISO format)

endDate
string<date-time>

Filter by end date (ISO format)

groupBy
enum<string>
default:month

Group results by time period

Available options:
day,
week,
month,
year

Response

Transactions summary retrieved successfully

success
boolean
Example:

true

data
object