Legacy Search billing records
Use expressive query filters across BillStack customer APIs.
Legacy (v1) API, no v2 equivalent yet. This page describes the Stripe-first legacy API. It is still supported and is not replaced by a v2 route.
The customer list endpoints accept a shared query parameter.
Paying customers
Team-scoped Stripe customers:
GET /api/billstack/teams/{teamId}/stripe/customers?query=is_paying%3AtrueProject-scoped customers:
GET /api/billstack/teams/{teamId}/projects/{projectId}/customers?query=is_paying%3Atrueis_paying:true matches a customer when at least one subscription is active,
not collection-paused, inside its current billing period, and has a latest
corresponding invoice with both paid = true and status = "paid". An active
subscription with an unpaid latest invoice is not considered paying.
For the stricter cash-backed recurring-revenue population, use:
GET /api/billstack/teams/{teamId}/stripe/customers?query=is_cash_paying%3AtrueThis additionally requires complete recurring invoice-line evidence, no amount remaining, successful net cash after refunds, and no unresolved dispute.
Combine it with customer text or field filters:
?query=is_paying%3Atrue+alice@example.com
?query=email%3A%22alice@example.com%22+is_paying%3Atrue
?query=is_paying%3Afalse+delinquent%3Atrue
?query=is_cash_paying%3AtrueBare terms search customer ID, email, and name. Repeated email or name filters are ORed within that field; different filters are combined with AND.
SDK
const page = await client.customers.list({
query: "is_paying:true",
limit: 50,
offset: 0,
});The SDK returns the canonical items page field. Project API responses retain
the legacy customers field for compatibility.