Skip to content

API reference

Look up an invoice number

Invoicing API

GET/v1/invoice-numbers

Says 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 of invoice, 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-numbers
Example
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
GET
/v1/invoice-numbers
Look up an invoice number
All
›AuthenticationRequiredBearerAuth

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

›Headers2
›Query Parameters2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/invoice-numbers" \
  -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