akwitoEU VAT proof

GET /v1/checks/{id}.pdf

Renders the PDF attestation for a check.

http
GET /v1/checks/chk_01J9X0000000000000000000.pdf?lang=en
Authorization: Bearer ak_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Language is chosen by, in order of precedence: the lang query parameter (fr or en), then the Accept-Language header, then French by default. Response: 200 OK, Content-Type: application/pdf.

The certificate carries a QR code and a "Public verification" line pointing to /v/{response_sha256}, where anyone holding the document can confirm it exists (see "Public verification").

Document time stamp (PAdES) #

The PDF carries a PAdES document time stamp — a DocTimeStamp signature with the ETSI.RFC3161 sub-filter, signed by the same authority as the check's RFC 3161 token. Acrobat, Foxit and other readers show it in their signatures panel with the date, the authority and "the document has not been modified since". It is embedded at the first download of a given language, once the check's RFC 3161 token exists, and the document is then frozen: every later download of that check in that language returns byte-identical content. Before that — while the token is still pending, or when the authority does not answer — a plain rendering without the document time stamp is served and not stored, and the next download tries again.

The printed "RFC 3161 time stamp" line and the separate .tsr token stay exactly as they are: the embedded stamp is an addition, not a replacement.

Reproducibility #

Generating the PDF for the same check twice produces byte-for-byte identical output: the document contains no generation timestamp or other variable element, only the data already frozen in the stored check — plus, once the RFC 3161 token described below is stored, the line that prints its signed date and authority, itself frozen from that moment on. Its final form is the stored document described above: once the PDF has been downloaded in a language and its document time stamp embedded, those exact bytes are served for good. A check therefore has at most three renderings over its life, in this order: before its token exists, after it, and the stored time-stamped document. The SHA-256 hash printed on the attestation is the hash of the exact JSON bytes returned by GET /v1/checks/{id} — not a hash recomputed from a fresh re-serialization, which could differ in key order.