Guides

Pagination & filtering

All list endpoints share the same query parameters for pagination, sorting, filtering and free-text search. Malformed parameter values are rejected with 400 invalid_request.

Pagination

ParameterDefaultLimitsDescription
page1min 11-based page number.
per_page501–200Items per page.
curl "https://app.talero.dk/api/v1/customers?page=3&per_page=100" \
  -H "X-API-Key: $TALERO_API_KEY"

List responses include a meta object; iterate until page reaches total_pages:

{
  "data": [ ... ],
  "meta": { "page": 3, "per_page": 100, "total": 342, "total_pages": 4 }
}

Sorting

Use sort to pick a field and order to pick a direction (asc or desc; the default direction is desc). Each resource allows a fixed set of sort fields:

ResourceAllowed sort fieldsDefault sort
Invoicescreated_at, issue_date, due_date, total, invoice_numbercreated_at
Customersname, created_at, emailname
Productsname, created_at, unit_pricename
Expensescreated_at, date, amountcreated_at
Suppliersname, created_atname
Accountsaccount_number, name, created_ataccount_number
Transactionsdate, created_atdate
curl "https://app.talero.dk/api/v1/invoices?sort=due_date&order=asc" \
  -H "X-API-Key: $TALERO_API_KEY"

Filtering

status

The status filter is available on invoices and expenses only. Invoice statuses:

draft, approved, sent, paid, overdue, cancelled

curl "https://app.talero.dk/api/v1/invoices?status=overdue" \
  -H "X-API-Key: $TALERO_API_KEY"

since and until

Restrict results to a date range. Both take ISO 8601 dates (YYYY-MM-DD), are inclusive, and are validated — an unparsable date returns 400 invalid_request.

curl "https://app.talero.dk/api/v1/expenses?since=2026-01-01&until=2026-06-30" \
  -H "X-API-Key: $TALERO_API_KEY"

search

Case-insensitive free-text search over the resource's descriptive fields (for example customer name and email, or invoice number and notes):

curl "https://app.talero.dk/api/v1/customers?search=nordisk" \
  -H "X-API-Key: $TALERO_API_KEY"

Combining parameters

All parameters combine freely:

curl "https://app.talero.dk/api/v1/invoices?status=paid&since=2026-07-01&sort=total&order=desc&per_page=25" \
  -H "X-API-Key: $TALERO_API_KEY"