Skip to main content
GET
Get Metrics

Authentication

This endpoint requires authentication. Include your access token in the Authorization header.

Query Parameters

string
Filter metrics by profile ID
number
Month to retrieve metrics for (1-12)
number
Year to retrieve metrics for
string
Filter by tax regime code

Response

object
Period information
object
Cash flow metrics (base de flujo - actual payments)
object
Accrual metrics (base devengada - invoice date basis)
object
Tax metrics
object
Pending amounts

Example Request

Example Response

Error Responses

When the user has no subscription or no data for the specified period, the endpoint returns default metrics with all values set to zero.

Notes

  • Metrics are calculated based on two accounting methods:
    • Flujo (Cash basis): Based on actual payment dates from payment complements
    • Devengado (Accrual basis): Based on invoice dates
  • Tax metrics include both collected/paid amounts and accrued amounts
  • If no period parameters are provided, metrics for the current month are returned
  • The endpoint handles missing data gracefully by returning zero values