Failed payment detail


The /reports/cashflow-failed-payments-detail endpoint returns individual failed payment records for a given period, with optional filtering by recovery status.

GET /reports/cashflow-failed-payments-detail

Query parameters

ParameterTypeDescription
selected-datestringPeriod start date to show failed payments for. Required.
selected-typestringFilter by status: still_unpaid, recovered, or churned.
baseCurrencystringTarget currency for conversion.
intervalstringAggregation interval. Defaults to month.
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": {
"list": [
{
"date": "2025-01-05",
"invoice_ref": "in_failed_001",
"customer_id": "cus_123",
"customer_name": "Acme Corp",
"customer_email": "[email protected]",
"amount": 9900,
"amount_base_currency": 9900,
"currency": "usd",
"payment_method": "card",
"description": "Pro Plan - Jan 2025",
"attempt_count": 3,
"recovery_status": "recovered"
}
]
}
}

Response fields

FieldTypeDescription
datestringDate of the failed payment
invoice_refstringInvoice reference ID
customer_idstringCustomer external ID
customer_namestringCustomer name
customer_emailstringCustomer email
amountnumberFailed amount in original currency (cents)
amount_base_currencynumberFailed amount in base currency (cents)
currencystringOriginal payment currency
payment_methodstringPayment method used
descriptionstringPayment description
attempt_countintegerNumber of payment attempts
recovery_statusstringStatus: recovered, still_unpaid, or churned