PUT
/v1/recurring-invoices/{id}Changes the interval, the next due date or whether it is active. A field left out keeps its value.
Path parameters
- idstring (uuid)Required
Request body
application/json, required
- intervalstringOne of
monthly,quarterly,half-yearly,yearly. - nextDuestring (date)
- activeboolean
Response
A 200 answer carries these fields.
- idstring (uuid)Required
- sourceobjectRequired
What repeats:
{ invoiceId }or{ draftId }.Show 2 child fields
- invoiceIdstring (uuid)
- draftIdstring (uuid)
- intervalstringRequiredOne of
monthly,quarterly,half-yearly,yearly. - nextDuestring (date)Required
- activebooleanRequired
- preparedintegerRequired
How many drafts it has prepared.
- lastDraftIdstring (uuid) or nullRequired
- duebooleanRequired
Active and due today or before.
- createdAtstring (date-time)Required
- updatedAtstring (date-time)Required
Status codes
| Status | Meaning |
|---|---|
200 |
The recurring invoice as it is now. |
400 |
|
401 |
|
404 |
|
501 |
PUT
/v1/recurring-invoices/{id}Example
curl -X PUT https://api.certinvo.com/v1/recurring-invoices/$RECURRING_INVOICE_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const recurringInvoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/recurring-invoices/${recurringInvoiceId}`, {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
'Content-Type': 'application/json',
},
body: await readFile('body.json'),
})
console.log(response.status, await response.json())import os
import requests
recurring_invoice_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.put(
f"https://api.certinvo.com/v1/recurring-invoices/{recurring_invoice_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text)200
application/json
{
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"source": {
"invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"draftId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
},
"interval": "monthly",
"nextDue": "2026-09-17",
"active": true,
"prepared": 0,
"lastDraftId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"due": true,
"createdAt": "2026-09-17T09:30:00Z",
"updatedAt": "2026-09-17T09:30:00Z"
}Success response