Skip to content

Collection KPIs

Measure how well your automated collections are performing. Collection KPIs report the collections due in a period alongside how many were collected, how many failed, and the amounts involved.

There are two collection categories, one per collection method:

  • directDebitCollections - Direct Debit collections, including how many needed a retry
  • cardCollections - saved payment card collections

Both offer the same KPI types, dimensions and filters, and both return their results in collection_ prefixed columns.

Returns overall collection totals and outcomes.

Endpoint

GET /backend/kpi/directDebitCollections/
GET /backend/kpi/cardCollections/

Example Request

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/" \
-H "Authorization: Bearer YOUR_KPI_KEY"

Example Response

[
{
"collection_customer_count": 1850,
"collection_count": 2250,
"collection_amount": 61500.000,
"collection_collected_count": 2180,
"collection_collected_amount": 59750.000,
"collection_failed_count": 45,
"collection_failed_amount": 1180.000,
"collection_retried_count": 62
}
]

Card collections return the same columns except collection_retried_count, which only applies to Direct Debit.

Groups collections by their current status.

Endpoint

GET /backend/kpi/directDebitCollections/byStatus/
GET /backend/kpi/cardCollections/byStatus/

Example Request

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/byStatus/" \
-H "Authorization: Bearer YOUR_KPI_KEY"

Groups collections by dealer for segmentation and comparison.

Endpoint

GET /backend/kpi/directDebitCollections/byDealer/
GET /backend/kpi/cardCollections/byDealer/

Tracks collection performance over time.

Endpoint

GET /backend/kpi/directDebitCollections/byMonth/
GET /backend/kpi/cardCollections/byMonth/

Example Request

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/byMonth/?minDate=2026-01-01" \
-H "Authorization: Bearer YOUR_KPI_KEY"

Example Response

[
{
"collection_month": "2026-05",
"collection_customer_count": 1830,
"collection_count": 2210,
"collection_amount": 60100.000,
"collection_collected_count": 2145,
"collection_collected_amount": 58400.000,
"collection_failed_count": 52,
"collection_failed_amount": 1350.000,
"collection_retried_count": 71
}
]

Combine the collection dimensions (period, status, dealer) with groupBy and pick an interval:

Terminal window
# Weekly Direct Debit collection outcomes by dealer
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/?groupBy=period,dealer&interval=week" \
-H "Authorization: Bearer YOUR_KPI_KEY"

With groupBy, the period column is named collection_period rather than collection_month. Periods are bucketed by each collection’s due date.

Refine your results using these filter parameters:

ParameterTypeDescriptionExample
minDatedateCollections due on or afterminDate=2026-01-01
maxDatedateCollections due on or beforemaxDate=2026-01-31
customerIDintegerInclude only collections for one customercustomerID=1234

This Month’s Collection Run

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/?minDate=2026-07-01&maxDate=2026-07-31" \
-H "Authorization: Bearer YOUR_KPI_KEY"

Track collected against failed amounts month by month, per collection method:

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/byMonth/" \
-H "Authorization: Bearer YOUR_KPI_KEY"
curl -X GET "https://companyname.callstats.net/backend/kpi/cardCollections/byMonth/" \
-H "Authorization: Bearer YOUR_KPI_KEY"

When failures rise, break the picture down by status and dealer:

Terminal window
curl -X GET "https://companyname.callstats.net/backend/kpi/directDebitCollections/byStatus/?minDate=2026-06-01" \
-H "Authorization: Bearer YOUR_KPI_KEY"
  1. Watch the failure ratio - Failed against total collections is your headline collection health figure, for both methods
  2. Track retries - A rising Direct Debit retry count often precedes a rise in outright failures
  3. Compare with payments - The Payment KPIs show collections in the context of all money received
  4. Bound by due date - minDate and maxDate filter on the collection due date, so align them with your collection runs