akwitoEU VAT proof

Reconciliations

A reconciliation matches an export of intra-EU invoices against the checks the account already holds, and says for each invoice whether a check contemporaneous with it exists. It calls no upstream and uses no quota: it reads proof, it does not create any. Test keys are refused with 403 TEST_KEY_NOT_ALLOWED — they have no real checks to cite.

Verdicts #

For each invoice, two candidate checks of this account on its number are considered, ignoring test checks and checks without an established validity (VIES unavailable): the latest one made before the end of the invoice day (UTC — an invoice date has no time, so a check made the same day counts), and the first one made after.

verdictWhen
coveredthe check before the invoice is valid and at most 30 days old
stalethe check before the invoice is valid but more than 30 days old
invalidthe check before the invoice says the number is invalid
lateno check before the invoice, only after
missingthe number was never checked
errorthe row could not be read (INVALID_FORMAT or INVALID_DATE)

Verdicts are computed on every read: a check made, or a monitoring pass run, after the upload shows up immediately. A check made after an invoice never makes it covered — it makes it late.

POST /v1/reconciliations #

multipart/form-data with a file field: a CSV with a header row, 2 MiB at most, 5 000 data rows at most (200 on the free plan, TOO_MANY_ROWS carries max_rows). The separator and BOM rules are those of batches. Recognised columns:

ColumnNamesRequired
VAT numbervat, vat_number, tva, numero_tva, tva_intracom, customer_vat, client_vat, vat_idyes
invoice datedate, invoice_date, date_facture, date_operation, issue_dateyes
invoice numberinvoice, invoice_number, facture, numero_facture, piece, reference, refno
net amountamount, net_amount, montant, montant_ht, total_htno

Dates are read as DD/MM/YYYY (or -, .), DD/MM/YY or YYYY-MM-DD, optionally followed by a time. The day/month order is decided per file: a US export, where a date such as 09/25/2026 gives it away, is read month first. Amounts accept 1 234,56, 1,234.56 and the like; an unreadable amount is ignored. A header without a VAT number column or a date column is refused with 400 MISSING_COLUMNS. The uploaded file itself is not kept, only its rows.

bash
curl -X POST https://api.akwito.eu/v1/reconciliations \
  -H "Authorization: Bearer ak_live_…" \
  -F "file=@invoices-september.csv"

201 Created:

json
{
  "reconciliation_id": "rec_01M3W72JK71JYQKB0MMGKCKSWJ",
  "filename": "invoices-september.csv",
  "first_invoice_date": "2026-09-02",
  "last_invoice_date": "2026-09-30",
  "summary": { "total": 14, "covered": 7, "stale": 0, "invalid": 1, "late": 2,
               "missing": 3, "error": 1, "covered_percent": 50 },
  "computed_at": "2026-10-01T17:09:12Z",
  "created_at": "2026-10-01T17:09:12Z",
  "url": "https://api.akwito.eu/v1/reconciliations/rec_01M3W72JK71JYQKB0MMGKCKSWJ",
  "results_url": "https://api.akwito.eu/v1/reconciliations/rec_01M3W72JK71JYQKB0MMGKCKSWJ/results.csv",
  "report_url": "https://api.akwito.eu/v1/reconciliations/rec_01M3W72JK71JYQKB0MMGKCKSWJ/report.pdf"
}

GET /v1/reconciliations/{id} #

The reconciliation, recomputed, and a page of its invoices in file order. verdict filters on one verdict; limit (1 to 100, default 20) and cursor (the last line returned, given back as next_cursor) paginate.

json
{
  "reconciliation": { "reconciliation_id": "rec_…", "summary": { … }, … },
  "items": [
    { "line": 1, "invoice": "F-2026-0901", "invoice_date": "2026-09-02",
      "raw": "BE0403170701", "vat_number": "BE0403170701", "amount_cents": 480000,
      "verdict": "missing" },
    { "line": 2, "invoice": "F-2026-0902", "invoice_date": "2026-09-05",
      "raw": "FR13542107651", "vat_number": "FR13542107651", "verdict": "late",
      "check_id": "chk_…", "checked_at": "2026-09-11T19:31:02Z", "check_valid": true,
      "proof_url": "https://api.akwito.eu/v1/checks/chk_…",
      "public_url": "https://akwito.eu/v/3f1c8a…" }
  ],
  "next_cursor": "2"
}

check_id is the check the verdict rests on: the one before the invoice, or for late the first one after it.

GET /v1/reconciliations/{id}/results.csv #

Every invoice in one CSV (;, UTF-8 BOM): line, invoice, invoice_date, raw, vat_number, amount, verdict, error, check_id, checked_at, check_valid, public_url.

GET /v1/reconciliations/{id}/report.pdf #

A summary for the accountant: coverage, counts per verdict and the invoices to review. lang=fr|en (or Accept-Language). The report is not evidence in itself; it cites evidence.

GET /v1/reconciliations/{id}/dossier.zip #

The audit file restricted to the checks the reconciliation cites, with rapprochement.csv at the root of the archive. Same rules, limits and errors as Audit file export.

POST /v1/reconciliations/{id}/verify #

Starts a batch on the numbers of the missing invoices, one line per number, whose reference lists the invoices concerned. 202 Accepted with the batch's batch_id and url; it then behaves as any batch and uses quota. 409 NOTHING_TO_VERIFY when no invoice is missing.

POST /v1/reconciliations/{id}/watch #

Puts every readable number of the reconciliation under monthly monitoring, so that the next invoices are covered. Same summary as POST /v1/watches/import: created, skipped_existing, skipped_limit, skipped_invalid.

GET /v1/reconciliations #

Lists the account's reconciliations, newest first, with limit and cursor. The summary of a listed item is the one of its last computation (computed_at).

DELETE /v1/reconciliations/{id} #

Deletes the reconciliation and its rows, 204 No Content. The checks it cites are kept. Reconciliations follow the account's retention period.