Skip to content

List recurring invoice schedules

GET
/v1/recurring-invoices
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.

q
string
Example
renta

Free-text search against the schedule name (case-insensitive substring). Trimmed; empty strings are ignored.

status
Array<string>
Allowed values: active paused completed canceled

Schedule lifecycle status. Repeat the param to filter by multiple values. canceled never matches: a canceled schedule is deleted and no longer listed.

docType
Array<string>
Allowed values: 01 02 03 04 05 06 07 08 09 10

Hacienda document type code of the template. Repeatable.

sort
string
default: createdAt
Allowed values: createdAt name nextRunDate

Sort key. Default createdAt.

order
string
default: desc
Allowed values: asc desc

Sort direction. Default desc.

page
number
Example
1

1-indexed page number. Default 1.

pageSize
number
Example
25

Rows per page. Default 25, max 100.

Media typeapplication/json
object
items
required

The schedules on this page, in the requested order.

Array<object>
object
id
required

Id of the schedule; read the whole schedule with GET /v1/recurring-invoices/{id}.

string format: uuid
name
required

Label of the schedule.

string
docType
required

Hacienda type of the invoices it creates, from template.docType: 01 (FE), 04 (TE), 08 (FEC) or 09 (FEE).

string
Allowed values: 01 04 08 09
environment
required

Environment the schedule belongs to; its invoices are issued in it.

string
Allowed values: sandbox production
status
required

Lifecycle of the schedule:

  • active: the daily sweep creates each occurrence once its date comes.
  • paused: no occurrence is created; resume it with POST …/resume or a PATCH. A schedule is also paused when an occurrence fails for good.
  • completed: it reached endDate or maxOccurrences; final.
  • canceled: never returned — a canceled schedule is deleted, and the API answers 404 for it.
string
Allowed values: active paused completed canceled
frequency
required

Unit of the cadence; see interval.

string
Allowed values: daily weekly monthly yearly
interval
required

Every how many frequency units an invoice is created.

number
>= 1
nextRunDate
required

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.

string format: date
nullable
autoSubmit
required

true: each invoice is signed and sent to Hacienda as soon as it is created; false: it is left as a draft.

boolean
occurrenceCount
required

Occurrences processed so far: each one that created its invoice, and each one that failed for good.

number
createdAt
required

When the schedule was created (ISO 8601 instant).

string format: date-time
total
required

How many schedules match the filters, across all pages.

number
page
required

The page returned (1-based).

number
pageSize
required

Rows per page used for this answer: 25 by default, at most 100.

number
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