Analytics - Financial
Get Profitability History
Get historical profitability data for a specific account over multiple months.
get/api/analytics/financial/profitability/{account}/history
Query parameters
monthsinteger
Number of months of history to retrieve (1-60, default 12)
Example:12
Number of months of history to retrieve (1-60, default 12)
Request body
Example request
{
"account_prefixed_id": "rerum",
"months": 23
}Response
Example response
[
{
"year": 2024,
"month": 1,
"gross_revenue": 10000,
"net_revenue": 8000,
"profit": 6000,
"margin": 75
}
]