POST
/v1/number-series/{kind}/allocationsTakes the next free number of a series. A number is never handed out twice, also when many requests ask at once. A number that an invoice this company issued already carries is skipped. Any credential may call this, so a system that files invoices takes its numbers here too.
Path parameters
- kindstringRequired
The series.
One ofinvoice,credit-note,correction,quote,proforma.
Response
A 201 answer carries these fields.
- kindstringRequiredOne of
invoice,credit-note,correction,quote,proforma. - numberstringRequired
- counterintegerRequired
- issueDatestring (date)Required
The company's day, in its own time zone, that the number's year was counted in. Date the invoice by it, so the number and the date never fall on two sides of midnight.
Status codes
| Status | Meaning |
|---|---|
201 |
The number, now taken. |
401 |
|
404 |
|
501 |
POST
/v1/number-series/{kind}/allocationsExample
curl -X POST https://api.certinvo.com/v1/number-series/$NUMBER_SERIE_KIND/allocations \
-H "Authorization: Bearer $CERTINVO_API_KEY"const numberSerieKind = 'value'
const response = await fetch(`https://api.certinvo.com/v1/number-series/${numberSerieKind}/allocations`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
number_serie_kind = "value"
response = requests.post(
f"https://api.certinvo.com/v1/number-series/{number_serie_kind}/allocations",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)201
application/json
{
"kind": "invoice",
"number": "RE-2026-0001",
"counter": 0,
"issueDate": "2026-09-17"
}Success response