Payment failure rate


The /reports/cashflow-failure-rate endpoint returns payment failure rate and recovery rate metrics over time. Supports optional breakdown by dimension.

GET /reports/cashflow-failure-rate

Query parameters

ParameterTypeDescription
datestringDate range. Format: YYYYMMDD-YYYYMMDD. Defaults to last 365 days.
intervalstringAggregation interval: day, week, month, quarter, year. Defaults to month.
breakdownstringOptional breakdown dimension.
regionstringFilter by region or country codes (space-separated).
currencystringFilter by currency codes (space-separated).
planstringFilter by plan group IDs (space-separated).
data_sourcestringFilter by data source ID (space-separated).

Example response

200 OK
{
"result": [
{
"date": "2025-01-01",
"failed_pct": 3.2,
"recovery_rate": 75.0,
"failed_invoices": 8,
"total_invoices": 250,
"recovered_invoices": 6
}
]
}

Response fields

FieldTypeDescription
datestringPeriod start date
failed_pctfloatPercentage of invoices that failed
recovery_ratefloatPercentage of failed payments recovered
failed_invoicesintegerNumber of failed invoices
total_invoicesintegerTotal invoices in period
recovered_invoicesintegerNumber of recovered invoices

When using the breakdown parameter, the response includes a breakdown object with per-dimension values.