GET
/v1/data-files/archiveEvery invoice in the GoBD archive, as GET /v1/archive lists it, all pages in one file: a CSV, an Excel sheet or JSON. The JSON is a list of ArchivedInvoice. Any credential may read it. CSV and Excel have one column per field, a nested one dotted; the CSV is separated by semicolons, in UTF-8 with a byte order mark, and a cell starting with =, +, - or @ is written with a leading '. More than 10,000 entries is refused with 400 too_many_rows.
Query parameters
- formatstring
The file's format. Absent, CSV.
One ofcsv,xlsx,json.
Status codes
| Status | Meaning |
|---|---|
200 |
|
400 |
The format is not one of csv, xlsx or json (invalid_format), or there are more than 10,000 entries (too_many_rows). |
401 |
No usable credential was sent (invalid_credentials). |
501 |
GET
/v1/data-files/archiveExample
curl https://api.certinvo.com/v1/data-files/archive \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/data-files/archive`, {
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/data-files/archive",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
No response body.
Success response