Skip to content

Invoices · How-to guide

Download lists as files

Learn how to download the archive index, a webhook's deliveries, the team, the recurring invoices and the establishments as CSV, Excel or JSON.

Five lists the API keeps for you can be downloaded whole, as one CSV, Excel (.xlsx) or JSON file. Use it for a copy for an audit, or to work with the list in a spreadsheet. These files only go out: the API makes these lists, so they are not imported.

The five files

File What it holds Who may download
GET /v1/data-files/archive Every invoice in the GoBD archive, as GET /v1/archive lists them, all pages in one file Any key or person
GET /v1/data-files/webhook-deliveries?webhook=<id> Every delivery of one webhook, newest first; the console’s log shows only the newest 50 Any key or person
GET /v1/data-files/team Every person who can sign in, with their role, access and companies A signed-in person only
GET /v1/data-files/recurring-invoices Every recurring invoice, soonest due first Any key or person
GET /v1/data-files/establishments The company’s establishments, head office first A key or a signed-in person

Add format=csv, xlsx or json. Without it, you get CSV:

curl -s -o archive.xlsx -H "Authorization: Bearer cvo_live_sk_..." "https://<api-host>/v1/data-files/archive?format=xlsx"

The columns

  • The JSON is the list exactly as its own route answers it.
  • CSV and Excel have one column per field, named as in the API. A nested field is dotted: source.invoiceId and source.draftId for a recurring invoice; address.postcode, vies.status and electronicAddress.value for an establishment. An empty field is an empty cell.
  • An establishment’s facts are named by the country’s rules, not by the API, so they share one facts cell, written as JSON: {"de_place_of_supply":"GERMANY"}.
  • The CSV is separated by semicolons, in UTF-8 with a byte order mark. A cell starting with =, +, - or @ is written with a leading ', so a spreadsheet never runs it. The Excel sheet writes every cell as text.

In the console

The Archive, Team and Recurring invoices screens, and each webhook’s log, have a download menu that offers CSV, Excel and JSON. The locations’ Settings pages have no download menu; download them through the API.

When it is refused

Status Code What happened
400 invalid_format format is not csv, xlsx or json.
400 too_many_rows The list holds more than 10,000 entries. Read it a page at a time through its own route.
401 session_required An API key asked for the team.
404 unknown_webhook webhook names no webhook of this company, or is missing.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close