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
- filestringRequiredOne 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