Skip to content

API reference

Download an invoice template

Other routes API

GET/v1/templates/{file}

A starting point for sending invoices, made from Certinvo’s invoice model and from invoices the validator accepted. Neither file holds anybody’s data.

invoices.csv is one row per invoice line, separated by semicolons, in UTF-8 with a byte order mark. Each column is named with the field’s name and its BT id. Rows with the same invoice number are one invoice, so one file holds many invoices; a line’s tax columns give that line’s rate, so one invoice can have several. Dates are written 31.12.2026 and amounts 1234,56. An allowance or charge on the whole invoice goes in its own columns, one per row, marked - for an allowance and + for a charge; a row with no line in it carries only that. An allowance on a single line cannot go in this flat file. A filled copy with the same header row is read as a mapped-file conversion with no mapping of your own.

invoices.xlsx is the same template in Excel: the same columns and rows on one sheet, every column formatted as text, so a date typed 31.12.2026 and an amount typed 1234,56 stay as typed. A filled copy with the same header row is read the same way, with no mapping of your own.

invoices.json is a batch of canonical invoices, one with two VAT rates and one with allowances and charges. Send it as the items of a canonical-invoices conversion.

Path parameters

  • filestringRequired
    One of invoices.csv, invoices.xlsx, invoices.json.

Status codes

Status Meaning
200 The template file.
401 No usable credential was sent (invalid_credentials).
404 There is no template of that name (unknown_template).
GET/v1/templates/{file}
Example
curl https://api.certinvo.com/v1/templates/$TEMPLATE_FILE \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const templateFile = 'value'

const response = await fetch(`https://api.certinvo.com/v1/templates/${templateFile}`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

template_file = "value"

response = requests.get(
    f"https://api.certinvo.com/v1/templates/{template_file}",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
text/csv
The body is the file itself (text/csv).
Success response
GET
/v1/templates/{file}
Download an invoice template
All
›AuthenticationRequiredBearerAuth

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

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/templates/{file}" \
  -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