curl --request GET \
--url https://api.example.com/api/trends{
"[]": [
{
"mes": 123,
"año": 123,
"ingresos_cobrados": 123,
"egresos_pagados": 123,
"ingresos_devengados": 123,
"egresos_devengados": 123
}
]
}Retrieve monthly trend data for income and expenses
curl --request GET \
--url https://api.example.com/api/trends{
"[]": [
{
"mes": 123,
"año": 123,
"ingresos_cobrados": 123,
"egresos_pagados": 123,
"ingresos_devengados": 123,
"egresos_devengados": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pakomercado0517/tresa-contafy-web/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer YOUR_ACCESS_TOKEN
año-actual: Only the selected year up to the current month (default)últimos-12-meses: Rolling window of the last 12 monthsaño-completo: All 12 months of the selected yearcomparar-anterior: Current year plus last 3 months of previous yearShow TrendDataPoint
curl -X GET "https://api.contafy.com/api/trends?profile_id=prof_123" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
curl -X GET "https://api.contafy.com/api/trends?profile_id=prof_123&period_view=últimos-12-meses" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
curl -X GET "https://api.contafy.com/api/trends?profile_id=prof_123&año=2026&period_view=comparar-anterior" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
curl -X GET "https://api.contafy.com/api/trends?profile_id=prof_123&año=2026&mes_corte=6" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
[
{
"mes": 1,
"año": 2026,
"ingresos_cobrados": 120000.00,
"egresos_pagados": 70000.00,
"ingresos_devengados": 150000.00,
"egresos_devengados": 85000.00
},
{
"mes": 2,
"año": 2026,
"ingresos_cobrados": 135000.00,
"egresos_pagados": 75000.00,
"ingresos_devengados": 160000.00,
"egresos_devengados": 90000.00
},
{
"mes": 3,
"año": 2026,
"ingresos_cobrados": 150000.00,
"egresos_pagados": 80000.00,
"ingresos_devengados": 200000.00,
"egresos_devengados": 100000.00
}
]
{
"error": "Unauthorized",
"message": "Invalid or missing access token"
}
{
"error": "Bad Request",
"message": "Invalid query parameters"
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred"
}
mes_corte in the current year, it automatically clamps to the current month