Reports
Reports endpoint.
Get Reports
GET https://pomeranianstoner.com/api/v1/reports
This endpoint allows you to get reports for given query.
Query Parameters
Name
Type
Description
stop_date
integer
Report stop date. FORMAT: timestamp
aggregation
string
daily | weekly | monthly | yearly DEFAULT: daily
start_date
integer
Report start date. FORMAT: timestamp
Headers
Name
Type
Description
token
string
User specific token. (Session only)
{
"count": 2,
"aggregation": "daily",
"results": [
{
"balance": 2000,32 <decimal>,
"expenses_total": 10000,32 <positive-decimal>,
"incomes_total": 12000,00 <positive-decimal>,
"currency": "USD",
"date": 20180203073000 <timestamp>,
"incomes_categories": {
"salary": 10000,32 <positive-decimal>,
"other": 2000,00 <positive-decimal>
},
"expenses_categories": {
"entertinment": 2000,00 <positive-decimal>,
"education": 4000,00 <positive-decimal>,
"home": 2000,00 <positive-decimal>,
"other": 2000,00 <positive-decimal>
}
},
{
"balance": -2000,00 <decimal>,
"expenses_total": 2000,00 <positive-decimal>,
"incomes_total": 0,00 <positive-decimal>,
"currency": "USD",
"date": 20180203073000 <timestamp>,
"expenses_categories": {
"entertinment": 1000,00 <positive-decimal>,
"education": 500,00 <positive-decimal>,
"other": 500,00 <positive-decimal>
}
}
]
}Last updated
Was this helpful?