GET
/v1/invoice-numbersSays whether an invoice this company issued already carries number, which invoices do, and the next free number of the series kind.
Query parameters
- numberstringRequired
The invoice number to look up.
- kindstring
The series whose next free number is answered.
One ofinvoice,credit-note,correction,quote,proforma.
Response
A 200 answer carries these fields.
- numberstringRequired
- usedbooleanRequired
True when an invoice this company issued carries the number.
- usedByarray of objectRequired
The issued invoices that carry the number, newest first, at most 20.
Show 4 child fields
- invoiceIdstring (uuid)Required
- issueDatestring (date) or nullRequired
- buyerstring or nullRequired
- createdAtstring (date-time)Required
- nextNumberstringRequired
The next free number of the series asked about.
Status codes
| Status | Meaning |
|---|---|
200 |
Whether the number is used, and by which invoices. |
400 |
|
401 |
|
404 |
|
501 |
GET
/v1/invoice-numbersExample
curl https://api.certinvo.com/v1/invoice-numbers?number=string \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/invoice-numbers?number=string`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/invoice-numbers?number=string",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/json
{
"number": "string",
"used": true,
"usedBy": [
{
"invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"issueDate": "2026-09-17",
"buyer": "string",
"createdAt": "2026-09-17T09:30:00Z"
}
],
"nextNumber": "string"
}Success response