Trigger a schedule run immediately
const url = 'https://api.emite.cr/v1/recurring-invoices/example/run-now';const options = {method: 'POST', 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 POST \ --url https://api.emite.cr/v1/recurring-invoices/example/run-now \ --header 'Authorization: Bearer <token>'Enqueues a one-off materialization for the schedule's current nextRunDate (or today when none) — an occurrence still in the future is created now, and the schedule then moves on to the following one. The actual invoice creation + optional Hacienda submission happens asynchronously in the worker. While that run is still queued, another call is deduplicated by recurring:<id>:<runDate>; once it has run, nextRunDate has moved on, so calling again brings the next occurrence forward too. Returns 409 RECURRING_SCHEDULE_NOT_ACTIVE when the schedule is not active.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Schedule UUID
Responses
Section titled “Responses”object
true when the occurrence is queued (also when it already was); false when the job queue could not be reached — nothing was queued, try again.
Date of the occurrence being created: the schedule nextRunDate, or today when it has none. Its run in GET …/runs carries this date.
Example
{ "runDate": "2026-11-01"}Schedule not found, canceled, or in another company or environment.
Schedule is not active (RECURRING_SCHEDULE_NOT_ACTIVE).