Transaction
This section covers the transaction available in the EconoMe API.
Endpoints
Base URL: https://econome-api-i2dyjb7xmq-et.a.run.app/api/v1
Get Transactions
GET /transactions
Headers
Authorization: Bearer <token>
Response
{
"error": false,
"message": "Transactions fetched successfully",
"data": [
{
"id": "integer",
"date": "YYYY-MM-DD",
"title": "string",
"amount": "integer",
"category_name": "string",
"type": "string"
}
]
}
Get Filtered Transactions
GET /transactions
Headers
Authorization: Bearer <token>
Query Parameters
start_date
- Start date of the transactionend_date
- End date of the transactiontype
- Type of the transaction (income/expense)
Example Queries
-
GET /transactions?type=income
-
GET /transactions?type=expense
-
GET /transactions?type=income&startDate=2021-01-01&endDate=2021-12-31
-
GET /transactions?type=expense&startDate=2021-01-01&endDate=2021-12-31
Response
{
"error": false,
"message": "Transactions fetched successfully",
"data": [
{
"id": "integer",
"date": "YYYY-MM-DD",
"title": "string",
"amount": "integer",
"category_name": "string",
"type": "string"
}
]
}