Skip to content

API reference

Download a sample of a file Certinvo makes

Other routes API

GET/v1/samples/{file}

A sample of a file Certinvo makes, written by the same writer as the real one over invoices the validator accepted. invoice-list.csv and invoice-list.xlsx are the invoice list as GET /v1/invoices?format= writes it. datev-extf.csv is a DATEV Buchungsstapel, in Windows-1252 as DATEV reads it. index.csv is the index of the account’s full download.

Path parameters

  • filestringRequired
    One of invoice-list.csv, invoice-list.xlsx, datev-extf.csv, index.csv.

Status codes

Status Meaning
200 The sample, as an attachment.
401 No usable credential was sent (invalid_credentials).
404 There is no sample of that name (unknown_sample).
GET/v1/samples/{file}
Example
curl https://api.certinvo.com/v1/samples/$SAMPLE_FILE \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const sampleFile = 'value'

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

import requests

sample_file = "value"

response = requests.get(
    f"https://api.certinvo.com/v1/samples/{sample_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/samples/{file}
Download a sample of a file Certinvo makes
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/samples/{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