Skip to main content
GET
/
accounting
/
transactions
/
monthly
Get Monthly Transactions
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/accounting/transactions/monthly \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "month": "<string>",
      "year": 123,
      "totalAmount": 123,
      "transactionCount": 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/monthly', {
  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

year
integer

Filter by year

month
integer

Filter by month (1-12)

Required range: 1 <= x <= 12
page
integer
default:1

Page number

size
integer
default:10

Items per page

Response

Monthly transactions retrieved successfully

success
boolean
data
object[]