Skip to main content

Send a file of invoices

POST 

/api/v1/files

Upload one file of invoices as multipart/form-data, at most 100 MB (gzip accepted; inflated, at most 1 GB). The answer is 202 with the RECEIVED receipt (id, bytes, sha256, received_at); the file is then parsed and processed in the background. Poll GET /api/v1/files/{id}.

Fields: file (required); format (ndjson or csv; otherwise taken from the file name, .ndjson/.jsonl/.csv, with or without .gz, or from the content); client_reference; the control record control_count, control_taxable_total, control_vat_total (a mismatch rejects the file); allow_duplicates (default false: a file with the same sha256 as one this organisation already sent is refused with 409 INTAKE_DUPLICATE_FILE naming it in duplicate_of); on_invalid (accept_valid, the default: invalid lines are reported and the rest processed; reject_file: any invalid line rejects the whole file).

Requestโ€‹

Responsesโ€‹

Successful Response