/v1/invoices/{id}/validationsValidates an already stored invoice again and stores the result as a new validation on the same invoice. No new invoice is created, and you do not send the file again.
Use it after a rules update, or when a person asks to check again. The newest validation is the current one.
Response
The validator report for the stored invoice, plus id (the invoice) and validationId (the new validation). Every verdict uses status 200.
It also carries scope and policyVersion. A re-check runs under the policy as it is NOW, so two re-checks of one invoice can differ, and these two fields say why. Pass policyVersion to run it under a named version instead. That makes an old verdict reproducible without holding the original bytes.
A version that is not the current one only answers. Nothing is stored and validationId is null, so the invoice’s stored validations, which decide whether its files may leave, stay as they were.
An invoice already sent keeps the verdict it was sent with. A re-check of it is stored and shown, but it is information only for your own copy: its files stay downloadable when the verdict it was sent with accepted it. Sending it again still needs the newest verdict to accept it. The invoice’s sent says which check it was sent with.
Path parameters
- idstring (uuid)Required
Query parameters
- policyVersioninteger
Re-check under THIS version of the company's validation policy instead of the current one. An older version answers without storing anything. A version this company does not have is refused (
unknown_policy_version), never answered under the current policy. Anything that is not a version number is refused (invalid_query). Both refusals happen before the engine runs.
Response
A 200 answer carries these fields.
- schemaVersionstringRequired
The version of this report format, not of the rule set. Any new field means a new version.
- contextanyRequired
What this check was asked to check: the country whose rules applied, the profile, the organisation's policy with its version, and the files made. Recorded as it was asked, so a report says what it answered.
- profilesarray of anyRequired
Which rulebook validated each rendering, and the result. Without a policy: one entry per entry in
document.syntax, in the same order. With a policy: one entry per rulebook the policy runs, then per rendering indocument.syntaxorder. A rulebook that did not run because it does not apply to a file is not here but innotApplicable. Empty whendocument.syntaxis empty, because nothing was validated, and under a policy whose every rulebook for the file did not apply. - rulesetstringRequired
The pinned rule set that validated the invoice, for example
xrechnung-3.0.2. The same invoice can pass one version and fail the next, so read the verdict together with this value. - verdictstringRequired
The verdict for the whole document.
rejected: the validator did not accept the invoice, or, under a policy, a required rulebook rejected it or could not check one of its files (seenotApplicable).acceptable-with-findings: accepted, and the report lists at least one rule finding, whichever rulebook fired it; this is not a rejection.clean: accepted, and the report lists no rule finding. When several runs decide the result, this is the worst of them. Findings about the file (documentFindings) never change the verdict, and neither doesrecommendations.One ofrejected,acceptable-with-findings,clean. - documentanyRequired
What was read from the submitted file: its source, syntax, invoice number, type code and declared profile. It holds no findings.
- schemaFindingsarray of anyRequired
Structural errors in canonical invoice JSON. When this list has entries, the invoice did not reach the validator.
- ruleFindingsarray of anyRequired
The findings the validator reported for the rules it applied.
- documentFindingsarray of anyRequired
Findings about the file as a document rather than the invoice inside it: a hybrid PDF whose PDF and XML disagree, its PDF/A-3 container, checks against a named buyer, and the calculation check add-on. Always present and usually empty. An empty list means there is no finding. It does not mean every check ran: a plain XML file has no PDF half and no container, so it never gets a PDF finding.
- rulesetReleasestringRequired
The build of the rule set that validated the invoice, for example
v2026-08-31. Two builds can share onerulesetname and still differ in rules and severities. Treat this value as an opaque label: do not parse it, validate it as a date or sort on it. - rulesetSha256stringRequired
The SHA-256 checksum of the validator configuration archive, as the publisher shipped it, in lower-case hex. It identifies the exact rules that were used.
- engineVersionstringRequired
The version of the KoSIT validator program that ran. A fix in the validator can change verdicts even when the rules stay the same.
- engineSha256stringRequired
The SHA-256 checksum of the validator program file (the jar), in lower-case hex. A version names a release; the checksum identifies the exact file.
- canonicalSnapshotHashstring or null
The SHA-256 of the canonical invoice this check used, over its RFC 8785 serialisation, in lower-case hex. Two spellings of one invoice give one hash, and any changed value gives another. For an invoice handed in, it names the invoice after the provenance a caller may not set is removed. For a document that arrived, it names the canonical invoice read from it. Null when there is none: an arrived document that could not be read into the model, or a refused payload that RFC 8785 cannot write.
- snapshotHashAlgorithmstring
How
canonicalSnapshotHashwas made: SHA-256 over the RFC 8785 serialisation, UTF-8. - writerSha256string
The SHA-256 of the Certinvo engine source that wrote, read back and graded the files, in lower-case hex.
engineVersionandengineSha256name the validator; this names our own program. It changes whenever the engine changes. - pdfToolsobject
The pinned versions of the tools that build a PDF (Mustang) and check it (veraPDF).
Show 2 child fields
- mustangstringRequired
- verapdfstringRequired
- refusedarray of any
The files that were not written because their syntax cannot carry this invoice, with the reason. A refused file is not validated and does not decide the verdict.
- notApplicablearray of any
Present only when a policy applies. The rulebooks the policy turns on that did not run on a file, because their rules apply only to a file whose own Specification identifier (BT-24) names them, and this file's does not. Not a result: such a rulebook never accepts a file. If it is
REQUIRED, the invoice isrejected. Empty when every rulebook the policy turns on applied. - omissionsarray of any
What each validated file does not hold of the invoice, read back from the file itself. Empty when every file holds everything.
- recommendationsany
Not part of the validation. For information only, and it never changes
verdict. Present when the rulebooks were selected automatically: the formats picked for this invoice, the fields to add, and where to read the rules that name them. - skippedarray of object
Present when the rulebooks were selected automatically and the organisation turned on, in its own settings, an extra check that graded no file: each such check, and why. Not validated, and it never changes
verdict.Show 2 child fields
- rulebookstringRequired
- whystringRequired
FILE: its rules are for none of the files checked.RULES: the rules matched for this invoice shut it out.One ofFILE,RULES.
- idstring (uuid)
- validationIdstring (uuid) or null
- scopestringOne of
policy,default. - policyVersioninteger or null
Status codes
| Status | Meaning |
|---|---|
200 |
The invoice was validated again. The body is the report and the ids of the invoice and the new validation. |
400 |
The stored file could not be read as an invoice (unreadable_document), or it names a mapping this organisation has not saved (unknown_mapping_version), or policyVersion named a version this company does not have (unknown_policy_version) or is not a version number (invalid_query). |
401 |
No usable credential was sent (invalid_credentials). |
404 |
No such invoice exists for this company (unknown_invoice). This API never returns 403 here. |
502 |
The validation engine could not run, so nothing was stored (engine_unavailable). |
/v1/invoices/{id}/validationscurl -X POST https://api.certinvo.com/v1/invoices/$INVOICE_ID/validations \
-H "Authorization: Bearer $CERTINVO_API_KEY"const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/invoices/${invoiceId}/validations`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
invoice_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.post(
f"https://api.certinvo.com/v1/invoices/{invoice_id}/validations",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"schemaVersion": "0.32",
"context": "string",
"profiles": [
"string"
],
"ruleset": "string",
"verdict": "rejected",
"document": "string",
"schemaFindings": [
"string"
],
"ruleFindings": [
"string"
],
"documentFindings": [
"string"
],
"rulesetRelease": "string",
"rulesetSha256": "string",
"engineVersion": "string",
"engineSha256": "string",
"canonicalSnapshotHash": "string",
"snapshotHashAlgorithm": "sha256-rfc8785",
"writerSha256": "string",
"pdfTools": {
"mustang": "string",
"verapdf": "string"
},
"refused": [
"string"
],
"notApplicable": [
"string"
],
"omissions": [
"string"
],
"recommendations": "string",
"skipped": [
{
"rulebook": "string",
"why": "FILE"
}
],
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"validationId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"scope": "policy",
"policyVersion": 0
}