Skip to content

Trigger a schedule run immediately

POST
/v1/recurring-invoices/{id}/run-now
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.

id
required
string

Schedule UUID

Media typeapplication/json
object
enqueued
required

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.

boolean
runDate
required

Date of the occurrence being created: the schedule nextRunDate, or today when it has none. Its run in GET …/runs carries this date.

string format: date
Example
{
"runDate": "2026-11-01"
}

Schedule not found, canceled, or in another company or environment.

Schedule is not active (RECURRING_SCHEDULE_NOT_ACTIVE).