Skip to content

API reference

Take the next number

Invoicing API

POST/v1/number-series/{kind}/allocations

Takes 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 of invoice, credit-note, correction, quote, proforma.

Response

A 201 answer carries these fields.

  • kindstringRequired
    One 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}/allocations
Example
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
POST
/v1/number-series/{kind}/allocations
Take the next number
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables1
›Headers2
›Body
›Code Snippet
curl -X POST "https://api.certinvo.com/v1/number-series/{kind}/allocations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close