Failed payments


The /reports/cashflow-failed-payments endpoint returns a timeline of failed payment metrics, including amounts failed, recovered, still unpaid, and churned, along with recovery rates.

GET /reports/cashflow-failed-payments

Query parameters

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

Example response

200 OK
{
"currency": "usd",
"result": [
{
"date": "2025-01-01",
"failed_amount": 15000,
"recovered": 10000,
"still_unpaid": 3000,
"churned": 2000,
"failed_invoices": 12,
"recovered_customers": 8,
"still_unpaid_customers": 2,
"churned_customers": 2,
"affected_customers": 10,
"total_invoices": 250,
"failed_pct": 4.8,
"recovery_rate": 66.7
}
]
}

Response fields

FieldTypeDescription
datestringPeriod start date
failed_amountnumberTotal failed payment amount (cents)
recoverednumberAmount recovered after retry (cents)
still_unpaidnumberAmount still outstanding (cents)
churnednumberAmount lost to churn (cents)
failed_invoicesintegerNumber of failed invoices
recovered_customersintegerCustomers whose payments were recovered
still_unpaid_customersintegerCustomers still unpaid
churned_customersintegerCustomers who churned due to failed payment
affected_customersintegerTotal customers affected
total_invoicesintegerTotal invoices in period
failed_pctfloatPercentage of invoices that failed
recovery_ratefloatPercentage of failed amount recovered