Skip to content

API reference

Get the validation report for one conversion

Conversions API

GET/v1/conversions/{id}/items/{index}/report

Path parameters

  • idstring (uuid)Required
  • indexintegerRequired

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 in document.syntax order. A rulebook that did not run because it does not apply to a file is not here but in notApplicable. Empty when document.syntax is 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 (see notApplicable). 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 does recommendations.

    One of rejected, 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 one ruleset name 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 canonicalSnapshotHash was 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. engineVersion and engineSha256 name 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 is rejected. Empty when every rulebook the policy turns on applied.

  • omissionsarray of object

    What the files handed out leave out. Absent when nothing is left out, and never a withheld file's list.

    Show 4 child fields
    • renderingstringRequired
    • whatstringRequired
    • codestring
      One of project-name, line-exemption-reason, line-exemption-reason-code, price-discount-without-gross-price, charge-reason-code-beside-tax-code, line-tax-in-tax-currency, due-date, document-type-code, card-network, third-party-payments, sub-lines, unreadable, field, invoicee, payer, extended-field, invoicer, salesAgent, buyerTaxRepresentative, productEndUser, buyerAgent, ultimateShipTo, shipFrom, payment-terms-disagree.
    • valuesobject
  • 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 of FILE, RULES.
  • scopestring

    policy when the company's own stored version chose the rulebooks, default when the German default did.

    One of policy, default.
  • policyVersioninteger or null

    The policy version it was graded under. Null for the default.

  • releasedboolean

    For an invoice we made or that was filed as issued, whether its files may leave. Only the validator's verdict decides it, so a rejected invoice's files never do.

Status codes

Status Meaning
200 The validator report for the exact files generated for this item, with what decided it and what may leave.
404
409 The item is pending or failed, so no report exists (operation_not_ready).
GET/v1/conversions/{id}/items/{index}/report
Example
curl https://api.certinvo.com/v1/conversions/$CONVERSION_ID/items/$ITEM_INDEX/report \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const conversionId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const itemIndex = 'value'

const response = await fetch(`https://api.certinvo.com/v1/conversions/${conversionId}/items/${itemIndex}/report`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

conversion_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
item_index = "value"

response = requests.get(
    f"https://api.certinvo.com/v1/conversions/{conversion_id}/items/{item_index}/report",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "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": [
    {
      "rendering": "string",
      "what": "string",
      "code": "project-name",
      "values": {}
    }
  ],
  "recommendations": "string",
  "skipped": [
    {
      "rulebook": "string",
      "why": "FILE"
    }
  ],
  "scope": "policy",
  "policyVersion": 0,
  "released": true
}
Success response
GET
/v1/conversions/{id}/items/{index}/report
Get the validation report for one conversion
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables2
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/conversions/{id}/items/{index}/report" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close