List recurring invoice schedules
const url = 'https://api.emite.cr/v1/recurring-invoices?q=renta&sort=createdAt&order=asc&page=1&pageSize=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/recurring-invoices?q=renta&sort=createdAt&order=asc&page=1&pageSize=25' \ --header 'Authorization: Bearer <token>'Paginated, filterable, sortable list of schedules for the current tenant + environment. Returns a lightweight RecurringInvoiceListItemDto per row (no template blob, no run history). Filters: q (name substring), status (repeatable), docType (repeatable). Default sort createdAt desc, default page size 25 (max 100). Canceled schedules are deleted and never listed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
rentaFree-text search against the schedule name (case-insensitive substring). Trimmed; empty strings are ignored.
Schedule lifecycle status. Repeat the param to filter by multiple values. canceled never matches: a canceled schedule is deleted and no longer listed.
Hacienda document type code of the template. Repeatable.
Sort key. Default createdAt.
Sort direction. Default desc.
Example
11-indexed page number. Default 1.
Example
25Rows per page. Default 25, max 100.
Responses
Section titled “Responses”object
The schedules on this page, in the requested order.
object
Id of the schedule; read the whole schedule with GET /v1/recurring-invoices/{id}.
Label of the schedule.
Hacienda type of the invoices it creates, from template.docType: 01 (FE), 04 (TE), 08 (FEC) or 09 (FEE).
Environment the schedule belongs to; its invoices are issued in it.
Lifecycle of the schedule:
active: the daily sweep creates each occurrence once its date comes.paused: no occurrence is created; resume it withPOST …/resumeor a PATCH. A schedule is also paused when an occurrence fails for good.completed: it reachedendDateormaxOccurrences; final.canceled: never returned — a canceled schedule is deleted, and the API answers 404 for it.
Unit of the cadence; see interval.
Every how many frequency units an invoice is created.
Date of the next occurrence (YYYY-MM-DD). The daily sweep (06:00 Costa Rica time) creates it once that date has come, while the schedule is active; a paused schedule keeps it, so it can lie in the past. null once the schedule is completed.
true: each invoice is signed and sent to Hacienda as soon as it is created; false: it is left as a draft.
Occurrences processed so far: each one that created its invoice, and each one that failed for good.
When the schedule was created (ISO 8601 instant).
How many schedules match the filters, across all pages.
The page returned (1-based).
Rows per page used for this answer: 25 by default, at most 100.
Example
{ "items": [ { "name": "Renta oficina — mensual", "docType": "01", "environment": "sandbox", "status": "active", "frequency": "daily", "interval": 1, "nextRunDate": "2026-11-01", "occurrenceCount": 3 } ], "total": 4, "page": 1, "pageSize": 25}Missing or invalid JWT / API key