Update recurring invoice
Editing the template changes the NEXT cycle only — invoices already issued are untouched. That is what makes the amount variable: it is read at the moment the invoice is created, so there is no window in which a stale figure can be billed.
Changing the cadence re-derives the next date from today rather than continuing from the last one, so an edit mid-cycle can legitimately produce two invoices in one calendar month, under two different billingPeriod values.
Response contract
The successful wire shape and errors an integration should branch on.
Recurring invoice
application/jsonidstringrequired- Unique recurring invoice identifier.
object"recurring_invoice"required- Stable resource discriminator.
customerIdstringrequired- The customer every generated invoice bills.
namestringrequired- Your label for the schedule. Not shown to the customer.
statusstringrequired- One of active, paused, completed, cancelled or failed. You set paused and cancelled; completed and failed are set for you — completed when it runs out of occurrences or passes its end date, failed when it parks itself after repeated errors.
modestringrequired- auto_send issues each invoice as it is generated. draft_for_review leaves a draft for you to edit and send, which is what you want when the amount needs a human look before it goes out.
cadenceobjectrequired- unit (weekly or monthly) and interval, plus weekday for weekly, or dayOfMonth or lastDayOfMonth for monthly. dayOfMonth is reported as you asked for it, never as clamped: a schedule set to the 31st reports 31 in every month, and bills the 28th in February.
startDatestringrequired- First date the schedule may produce an invoice, as a calendar date (YYYY-MM-DD) in your timezone — not a timestamp.
endDatestring- Optional last date, inclusive. Absent means it runs until you stop it.
nextInvoiceDatestring- The next date this produces an invoice, in your timezone. Absent once the schedule is cancelled or has run its course.
maxOccurrencesinteger- Optional cap on how many invoices this will ever produce.
occurrenceCountintegerrequired- How many invoices it has produced so far.
templateobjectrequired- What each generated invoice is built from: amount and currency, optional amountTax, amountDiscount, description, paymentTerms, items, plus autoCharge and paymentMethodId. Amounts are minor units. Editing it changes the next cycle only.
lastFailureCodestring- Why the last cycle produced nothing, as a code. Present only after a failure; cleared once a cycle succeeds.
recurringInvoiceIdstring- The recurring invoice that produced this one. Absent on a one-off invoice.
billingPeriodstring- Which cycle this invoice satisfies, as the period's start date in your timezone. Two invoices in one month carry two different values, which is how you tell them apart.
createdAtstringrequired- ISO 8601 creation timestamp.
Example response
{
"id": "sch_01JEXAMPLE",
"object": "recurring_invoice",
"customerId": "cus_01JEXAMPLE",
"name": "Monthly retainer",
"status": "active",
"mode": "auto_send",
"cadence": {
"unit": "monthly",
"interval": 1,
"dayOfMonth": 1
},
"startDate": "2026-09-01",
"endDate": "2027-09-01",
"nextInvoiceDate": "2026-10-01",
"maxOccurrences": 12,
"occurrenceCount": 3,
"template": {
"amount": 120000,
"currency": "USD",
"paymentTerms": "net_30",
"autoCharge": false
},
"lastFailureCode": "RECURRING_INVOICE_CARD_NOT_FOR_CUSTOMER",
"recurringInvoiceId": "sch_01JEXAMPLE",
"billingPeriod": "2026-09-01",
"createdAt": "2026-08-19T12:00:00.000Z"
}Error responses
authentication_failedThe key is missing, malformed, revoked, or invalid for this environment.
permission_deniedThe key does not have recurringInvoices.update.
not_foundThe resource does not exist for this merchant.
invalid_requestOne or more request fields are invalid.