get
https://www.pelcro.com/api/v1/core/invoices
Retrieve a paginated list of invoices.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Retrieve a paginated list of all invoices. Use filters to narrow results by customer, status, or metadata.
Example: List all unpaid invoices to identify customers needing payment follow-up: ?filter[status]=open
| Feature | Fields |
|---|---|
| Searchable | id, user_id, status, failed_attempts, metadata.* |
| Sortable | id, status, created, created_at |
| Expandable | subscription, charge, user, discount |
Filter by failed payment attempts
Use filter[failed_attempts]=gte:N to list invoices with at least N failed payment attempts. Each invoice in the response includes its failed_attempts count.
Example: List unpaid invoices that failed at least 3 times, to target recovery outreach: ?filter[status]=eq:open&filter[failed_attempts]=gte:3
- A failed attempt is a failed charge on the invoice, on any payment gateway.
- Only the
gteoperator is supported onfailed_attempts. Any other operator, a range, or a non-numeric value returns a 400 error. - Offline invoices have no automatic payment attempts and never match.

