/v1/validationsAccepts one or more finished invoice documents as one validation operation. A one-document request follows the same path and returns the same shape as a many-document request. context selects the received or issued side of the company’s validation policy. The policy version is resolved once when the operation is accepted and every item uses that version. Validation reads the submitted bytes as they are and never converts them to another format. The workspace’s processing plan supplies feature access, item and byte limits, document quota and retention. A temporary result expires at the time stated in the operation response and is not added to the invoice archive.
Headers
- Idempotency-Keystring
Request body
application/json, required
- buyerTypestring
Optional. Who the buyer of these invoices is. It wins over the type of a named customer, and is frozen for every item, so queued work cannot change. Without either, the buyer's type is assumed from the invoice, and the report says so. A valid Leitweg-ID as the buyer reference makes a public buyer, and a buyer VAT identifier, or a party established in Germany, a business. The company's usual buyer type is no company fact, and a
companyFactsthat sends one is refused. Any other value is refused (invalid_operation).One ofbusiness,consumer,public. - companyFactsobject
Optional. The company facts for these invoices, in the shape
PUT /v1/company/factstakes. Each fact given wins over the one the company saved, and a fact left out or null keeps the saved one. A fact its rules ask per invoice, such as why the supplies marked exempt from VAT are exempt, is given in itsfacts; on a received invoice that is the only kind it gives. It is frozen for every item, so queued work cannot change. A value the company facts refuse is refused here (invalid_operation), and the message names the field.Show 4 child fields
- organisationTypestring
What the company is:
business, a business buying for its business, orpublic, a public authority. On a received invoice the company is the buyer, so this is the buyer's type.One ofbusiness,public,null. - establishedCountrystring or null
Where the company is established: its seat, its place of management or a fixed establishment involved in the supply, as an ISO 3166-1 country code. Null: the country of the company's address on each invoice stands for it.
- useAddressAsEstablishmentboolean
Use the address on the invoice as where a party is established. True: the country of the seller's or the buyer's address on the invoice is taken as stated, wherever nothing else states it. False, the default: the check assumes it from the address and says so.
- factsobject
Each fact a country's rules define that the company states, named as the rules name it, such as why its supplies marked exempt from VAT are exempt, or whether it is a micro or small or medium-sized enterprise (true or false).
GET /v1/jurisdictionslists each country's facts with their type and values, and whom each is asked of. Each value is checked against the rule file that defines it. A fact asked of a buyer is refused here: it is saved with the customer. A fact asked of an establishment is refused here too: it is saved on the establishment. An operation'scompanyFactsmay still give either for its own invoices. An empty value is no value.
- policyVersioninteger
Optional, and it must be the current policy version. An older one is refused (
policy_version_superseded), because an operation stores what it checks. Omit it to freeze the current version at acceptance. - contextstring
Selects the matching side of the company's validation policy for every document. Required, except with
validateOnly, where leaving it out lets the file decide (ValidateOnlyCheckedAs,ValidateOnlyMadeHere).One ofreceived,issued. - validateOnlyboolean
Optional.
truevalidates exactly one document and answers its check report at once with 200. Nothing is kept, no operation is opened and no document quota is used. A document that is source data, or bytes nothing reads, is refused as a filed one would be. - documentsarray of objectRequired
Show 2 child fields
- namestring
A display label only. It never decides the file type.
- datastring (byte)Required
The finished invoice bytes in base64.
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.
- contextobjectRequired
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.
Show 5 child fields
- jurisdictionstring or nullRequired
The country whose rules apply, as a two-letter ISO 3166 code: the organisation's own country, or
DEfor the German default that grades every check with no policy of its own. Null when the organisation's country has no pinned rule set of its own, and when a caller asks by name for the document's own label to pick the rulebook. - profilestringRequired
The pinned rule set the country's own files are written and checked under, as the lock names it, for example
xrechnung-3.0.2. - policy or nullRequired
The validation policy the check ran under, and its stored version: the organisation's own, or the German default (version null) when it has none. Null only when a caller asks by name for the document's own label to pick the rulebook, as the corpus suites do.
- renderingsarray of stringRequired
The files to make and check, by their format id. Empty for a document that arrived: nothing is made.
- rulebookSelectionstring
Present when a decision from the invoice and the rules picks the rulebooks, and the policy adds only its extra checks: on every check since 0.26. Absent on an older report the policy's own rulebooks graded.
- profilesarray of objectRequired
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.Show 13 child fields
- syntaxstringRequired
The syntax of the rendering this entry is about. It is one of the values listed in
document.syntax.One ofubl,cii. - verdictstringRequired
The validator's verdict for this rendering alone, with the same three values as the top-level
verdict. To show a result per rulebook, read this field. The top-levelverdictis the worst across renderings, so it can differ from this one.One ofrejected,acceptable-with-findings,clean. - namestring or nullRequired
The name of the matched scenario, verbatim from the validator, for example
EN16931 XRechnung (UBL Invoice).nullwhen no scenario matched: the document's label names a profile the pinned configuration does not know, so the validator rejected it without firing a rule. With a policy,nullmeans the chosen rulebook has no scenario for this document (for example, XRechnung Extension has no UBL credit note, and Peppol BIS does not read CII). - rulebookstring
Present only when a policy applies. The rulebook the organisation's policy chose for this run, by its name in the rulebook list. Absent when the document's own label chose the rulebook.
- strengthstring
Present only when a policy applies.
REQUIRED: this run decides the top-levelverdict.OPTIONAL: this run is shown but cannot fail the verdict. Rulebooks the policy turns off do not run and have no entry.One ofREQUIRED,OPTIONAL. - rulesarray of string
Present only when a policy applies. Every rule id this run fired, as the validator reports it.
- renderingstring
Present only when a policy applies. The file this run validated.
ubl,cii,en16931-ubl,en16931-cii,extended-ciiandpeppolare files Certinvo generated; the twoen16931-values are the plain EN 16931 versions, andextended-ciiis the ZUGFeRD EXTENDED XML.originalis the file that was submitted.One ofubl,cii,en16931-ubl,en16931-cii,extended-cii,peppol,original. - runstring
Present only when a policy applies. The run's name, in the form
<rendering>.<marker>. The validator's report (Prüfbericht) for this run is stored under this name. - rulesetstring
Present only when a policy applies. The pinned ruleset that ran this rulebook. The top-level
rulesetnames only the run that decided the verdict, so this is where every other run's version is recorded. - rulesetReleasestring
Present only when a policy applies. Which build of
rulesetran. Opaque: never parse it, sort it or read it as a date. - rulesetSha256string
Present only when a policy applies. The checksum of the configuration archive that ran this rulebook.
- levelsstring
Present only when a policy applies and the file's own label names a rulebook built on this one (its scenario runs all of this one's rules and more). The name of that rulebook: this run was graded at the severity levels it sets. For example,
EN16931on an XRechnung file is graded at the levels ofEN16931 XRechnung, which lowers BR-CL-21 and BR-CL-23 to warnings. - sha256string
The SHA-256 of the exact bytes this run validated, in lower-case hex. The verdict is about this file and no other.
- 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. - documentobjectRequired
What was read from the submitted file: its source, syntax, invoice number, type code and declared profile. It holds no findings.
Show 5 child fields
- sourcestringRequired
What was submitted.
json: canonical invoice JSON, which Certinvo rendered itself.xmlandpdf: a finished document. A ZUGFeRD PDF ispdfand also lists asyntax, because the one file carries two documents.One ofjson,xml,pdf. - syntaxarray of stringRequired
The EN 16931 syntaxes this report validated. Canonical JSON lists two, because it is rendered into both UBL and CII and both are validated. A submitted document lists one. Empty when nothing was rendered or read, for example after a canonical schema failure.
- invoiceNumberstring or nullRequired
The Invoice number (BT-1), verbatim from the document.
nullwhen the document does not carry one, which is normal after a schema failure. A number is never made up to fill the gap. - typeCodestring or nullRequired
The Invoice type code (BT-3), verbatim from the document, or
nullwhen it states none. It tells you whether the document is an invoice, a credit note or a correction. It is always read from the file, never inferred from the root element. In UBL it comes fromInvoiceTypeCodeorCreditNoteTypeCode, depending on the root; in CII fromExchangedDocument.nullis normal after a schema failure. - profileobject or nullRequired
What the document declares about itself: the Specification identifier (BT-24) and the Business process type (BT-23), as the sender wrote them.
nullfor canonical invoice JSON, which declares nothing. This is not the rulebook that validated the document: that is inprofiles, and the pinned rule set is inruleset. The three can differ.Show 2 child fields
- customizationIdstring or nullRequired
The Specification identifier (BT-24), verbatim. The validator uses it to choose the rulebook.
nullwhen the document states none. - profileIdstring or nullRequired
The Business process type (BT-23), verbatim. Often absent, and then
null, never an empty string.
- schemaFindingsarray of objectRequired
Structural errors in canonical invoice JSON. When this list has entries, the invoice did not reach the validator.
Show 3 child fields
- pathstringRequired
The JSON path of the failing value (Ajv's
instancePath), for example/lines/0/quantity. An empty string means the document itself. - keywordstringRequired
The schema keyword that failed, for example
required,typeorpattern. Map it to a sentence. For a keyword you do not recognise, show a generic message, never nothing. - paramsobjectRequired
Ajv's parameters for that keyword, for example
{ "missingProperty": "vatId" }. Use them to fill the placeholders in your message.
- ruleFindingsarray of objectRequired
The findings the validator reported for the rules it applied.
Show 7 child fields
- termsarray of objectRequired
The business terms this rule is about, in the order the rule's own text names them, each once. Empty when the rule text names none.
Show 2 child fields
- idstringRequired
The term's id as the rule's own text writes it, for example
BT-115. - name or nullRequired
The term's name in German and English, from KoSIT's pinned XRechnung visualization tables. Null when those tables do not name it; Certinvo never writes a name of its own.
- decidesboolean
Present only when a policy applies.
true: a required run fired this finding, so the verdict rests on it.false: only optional rulebooks fired it; it is listed with its text but does not decide the verdict. - rulebooksarray of string
Present only when a policy applies. Every rulebook that fired this finding, by its name in the rulebook list.
- rulestringRequired
The rule id exactly as the validator reports it in its
codeattribute: a rulebook's rule id, or the XML schema processor's code when the file breaks its schema. The pattern checks the shape only; matching it does not prove the rule exists. - locationstringRequired
Where in the invoice the validator was looking, in its own words, for example
/Invoice/TaxTotal. It is not a JSON path: it points into the XML Certinvo generated, not into the canonical JSON. - severitystringRequired
How serious the rule set says this finding is. The value is the finding's level in the validator report, replaced by the scenario's custom level when the scenario sets one for this rule. It matches the report a customer can download. The same rule can have different severities in UBL and CII.
unspecified: the report gave no level, or one not listed here. Severity is not the verdict: read acceptance fromverdict.One oferror,warning,information,unspecified. - textobjectRequired
The finding's wording in German (
de) and English (en), each with its source. A language isnullwhen no wording at all could be found for it. At least one language is always present.Show 2 child fields
- deobjectRequired
One language's wording for one finding, and where it came from. Show these texts as given; do not compose your own.
Show 4 child fields
- sourcestringRequired
Where the words come from, per finding and per language.
validator: the validator's own text for this rule, verbatim, in this language.untranslated: the validator's text verbatim in the other language, because this language does not exist upstream; your interface must say so and must not present it as this language.certinvo: Certinvo's own text, for a finding where no rule fired and there is nothing to quote.catalog: retired and no longer produced; it stays in the list so that older reports still validate.One ofcatalog,validator,untranslated,certinvo. - messagestringRequired
What the file does not satisfy, in one sentence. It states the requirement and the location. It never advises on the customer's taxes.
- fixstring or nullRequired
Always
null. The field is kept so that existing clients that parse it do not break. - legalNoticestring or nullRequired
The legal notice under the German Tax Advisory Act (StBerG) that must be shown with the finding. Present on every finding, in both languages. It travels with the finding so that any interface that renders the finding also shows it.
- enobjectRequired
One language's wording for one finding, and where it came from. Show these texts as given; do not compose your own.
Show 4 child fields
- sourcestringRequired
Where the words come from, per finding and per language.
validator: the validator's own text for this rule, verbatim, in this language.untranslated: the validator's text verbatim in the other language, because this language does not exist upstream; your interface must say so and must not present it as this language.certinvo: Certinvo's own text, for a finding where no rule fired and there is nothing to quote.catalog: retired and no longer produced; it stays in the list so that older reports still validate.One ofcatalog,validator,untranslated,certinvo. - messagestringRequired
What the file does not satisfy, in one sentence. It states the requirement and the location. It never advises on the customer's taxes.
- fixstring or nullRequired
Always
null. The field is kept so that existing clients that parse it do not break. - legalNoticestring or nullRequired
The legal notice under the German Tax Advisory Act (StBerG) that must be shown with the finding. Present on every finding, in both languages. It travels with the finding so that any interface that renders the finding also shows it.
- documentFindingsarray of objectRequired
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.
Show 5 child fields
- kindstringRequired
What the finding is about. For every check, the good outcome is no finding at all. No kind changes
verdict. Buyer checks run only when the request names a customer (customer), for the terms its country's rules ask of a buyer of its type in a declared format: today a public buyer in Germany's Buyer reference (BT-10), a Leitweg-ID.buyer-reference-not-a-leitweg-id: the Buyer reference (BT-10) does not have the form or check digits of a Leitweg-ID.buyer-reference-not-the-buyers: BT-10 is a Leitweg-ID, but not the one saved for this buyer in the customer list.buyer-requirements-not-checked: the buyer check did not happen. For buyer findings,aboutisbuyerReferenceandxmlStatesis the stated BT-10. PDF and XML comparison:pdf-xml-amounts-disagree: the XML states an amount that the PDF's text layer does not;aboutis that amount's business term, for exampleBT-115.pdf-xml-not-compared: the comparison did not happen, which does not mean the two agree;aboutis null when nothing on the page was compared, else the one term that was not:BT-115when the page of an invoice labels no amount as the amount due,BT-84when the account could not be compared.pdf-xml-amounts-disagreeaboutBT-115is also written when the amount the page labels as due is not the XML's, even where the XML's amount is printed as another total.pdf-xml-page-leaves-out: the page a company supplied for its PDF does not state the XML's invoice number, issue date or buyer name;aboutisBT-1,BT-2orBT-44andxmlStatesthe XML's value. The PDF is made, and the finding is carried with it.mapping-new-fields: the customer file this invoice was mapped from had columns its mapping has never seen, whose values were not read.mapping-missing-fields: it lacked columns its mapping reads. For both,aboutandxmlStatesare null and the text names each column. PDF/A-3 container:pdf-envelope-not-conforming: veraPDF found the PDF is not the PDF/A-3 container ZUGFeRD requires.pdf-envelope-not-validated: veraPDF did not run (for example, the tool is missing), so the container was not checked; never treat this as a pass. Calculation check (an add-on, only for companies that have it switched on):arithmetic-differs: an amount does not equal the exact figure computed from the amounts it is made from, and the official validator does not accept that difference.arithmetic-differs-accepted: the same, but the official validator accepts it (for example a category tax amount off by less than 1, or a total that repeats a difference the invoice already states in the amount it is made from).arithmetic-not-checked: an amount, or the whole invoice, could not be recomputed; this is never a statement that it adds up. For calculation findings,aboutis the business term (for exampleBT-117),xmlStatesis the stated amount (null when the invoice states none), and the text states the exact figure and the difference.account-kind-calculated: a UBL invoice states the Payment account identifier (BT-84) without saying whether it is an IBAN, so Certinvo calculated the kind from the country's layout in SWIFT's IBAN registry and the ISO 7064 MOD 97-10 check digits. One per account;aboutisBT-84,xmlStatesis the account as stated, and the text says which kind was calculated. A CII invoice states the kind, so it never has this finding.pdf-xml-account-disagree: the XML inside a hybrid PDF pays to a Payment account identifier (BT-84) that the PDF's text layer does not state, while the page states another IBAN;aboutisBT-84,xmlStatesis the XML's account andpdfStatesthe IBANs on the page. A page that states no IBAN, an account that is not an IBAN, and a page that also states an IBAN the XML does not pay to are eachpdf-xml-not-comparedaboutBT-84. Run only when the company turned this check on.seller-account-changed: a received invoice pays to an account (BT-84) that none of the same seller's earlier received invoices in this company stated, the seller matched by its VAT identifier (BT-31), else its tax registration identifier (BT-32);aboutisBT-84,xmlStatesis the new account, and the text names the earlier ones. The VAT identifier is matched without spaces and letter case.seller-account-not-compared: there was nothing to compare with: the seller's first received invoice, an invoice stating neither BT-31 nor BT-32, or an invoice stating no account;aboutisBT-84andxmlStatesthe account, or null. Run only when the company turned this check on.One ofpdf-xml-amounts-disagree,pdf-xml-not-compared,pdf-xml-page-leaves-out,mapping-new-fields,mapping-missing-fields,pdf-envelope-not-conforming,pdf-envelope-not-validated,buyer-reference-not-a-leitweg-id,buyer-reference-not-the-buyers,buyer-requirements-not-checked,arithmetic-differs,arithmetic-differs-accepted,arithmetic-not-checked,account-kind-calculated,pdf-xml-account-disagree,seller-account-changed,seller-account-not-compared. - aboutstring or nullRequired
Which value the finding is about, named by its XML element, for example
DuePayableAmountorGrandTotalAmount.buyerReferenceon buyer findings. The business term, for exampleBT-117, on calculation findings.nullwhen nothing was compared, and on container findings. - xmlStatesstring or nullRequired
The value the embedded XML states, verbatim, as a decimal string. On buyer findings, the stated BT-10.
nullwhen nothing was compared. - pdfStatesarray of stringRequired
The amounts the PDF's text layer states, verbatim (
1.190,00stays1.190,00). A list, because the check does not decide which amount on the page is the total. Empty when the text layer states none, and on every container and buyer finding. - textobjectRequired
The finding's wording in German (
de) and English (en), each with its source. A language isnullwhen no wording at all could be found for it. At least one language is always present.Show 2 child fields
- deobjectRequired
One language's wording for one finding, and where it came from. Show these texts as given; do not compose your own.
Show 4 child fields
- sourcestringRequired
Where the words come from, per finding and per language.
validator: the validator's own text for this rule, verbatim, in this language.untranslated: the validator's text verbatim in the other language, because this language does not exist upstream; your interface must say so and must not present it as this language.certinvo: Certinvo's own text, for a finding where no rule fired and there is nothing to quote.catalog: retired and no longer produced; it stays in the list so that older reports still validate.One ofcatalog,validator,untranslated,certinvo. - messagestringRequired
What the file does not satisfy, in one sentence. It states the requirement and the location. It never advises on the customer's taxes.
- fixstring or nullRequired
Always
null. The field is kept so that existing clients that parse it do not break. - legalNoticestring or nullRequired
The legal notice under the German Tax Advisory Act (StBerG) that must be shown with the finding. Present on every finding, in both languages. It travels with the finding so that any interface that renders the finding also shows it.
- enobjectRequired
One language's wording for one finding, and where it came from. Show these texts as given; do not compose your own.
Show 4 child fields
- sourcestringRequired
Where the words come from, per finding and per language.
validator: the validator's own text for this rule, verbatim, in this language.untranslated: the validator's text verbatim in the other language, because this language does not exist upstream; your interface must say so and must not present it as this language.certinvo: Certinvo's own text, for a finding where no rule fired and there is nothing to quote.catalog: retired and no longer produced; it stays in the list so that older reports still validate.One ofcatalog,validator,untranslated,certinvo. - messagestringRequired
What the file does not satisfy, in one sentence. It states the requirement and the location. It never advises on the customer's taxes.
- fixstring or nullRequired
Always
null. The field is kept so that existing clients that parse it do not break. - legalNoticestring or nullRequired
The legal notice under the German Tax Advisory Act (StBerG) that must be shown with the finding. Present on every finding, in both languages. It travels with the finding so that any interface that renders the finding also shows it.
- 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 object
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.
Show 3 child fields
- renderingstringRequired
The file, by its format id.
- becausestringRequired
Why, in a sentence a customer can act on. Never a rule id.
- reasonsarray of objectRequired
The same reasons as codes, in the order
becausestates them.Show 2 child fields
- codestringRequired
- valuesobject
- notApplicablearray of object
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.Show 4 child fields
- rulebookstringRequired
The rulebook, by its name in the rulebook list.
- strengthstringRequired
How much the policy says it counts.
REQUIREDmakes the invoicerejected, because a required rulebook could not check this file.One ofREQUIRED,OPTIONAL. - renderingstringRequired
The file it did not apply to, named as
renderingon a profile.One ofubl,cii,en16931-ubl,en16931-cii,extended-cii,peppol,original. - syntaxstringRequired
The syntax of that file.
One ofubl,cii.
- omissionsarray of object
What each validated file does not hold of the invoice, read back from the file itself. Empty when every file holds everything.
Show 4 child fields
- renderingstringRequired
The file, by its format id.
- whatstringRequired
What the file does not hold, in a sentence a customer can act on. Never a rule id.
- codestringRequired
The same fact as a code.
- valuesobject
- recommendationsobject
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.Show 3 child fields
- formatsarray of stringRequired
The rulebooks picked for this invoice, by name, such as
EN16931 XRechnung. Empty when none was picked, and the invoice was validated under the organisation's policy. - addFieldsarray of objectRequired
Each business term a rule names that the invoice leaves empty, such as a purchase order reference. Empty when there is none.
Show 3 child fields
- termstringRequired
The EN 16931 business term, such as
BT-13. - alternativesarray of string
When any one of these terms is enough, all of them,
termfirst. - labelobjectRequired
The field's name in German and in English, with its business term.
Show 2 child fields
- destringRequired
- enstringRequired
- referencesarray of objectRequired
Where to read the rules behind
formatsandaddFields, each once.Show 2 child fields
- labelstringRequired
The source and the place in it: the name of the law and its article.
- urlstringRequired
Where to read it.
- 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.
Status codes
| Status | Meaning |
|---|---|
200 |
With validateOnly, the one document’s check report. Nothing was kept. Without context, the report also carries checkedAs (ValidateOnlyCheckedAs), the side of the policy that graded it and why. A file this company made is graded under today’s rules as one it issues, and the report also carries madeHere (ValidateOnlyMadeHere), where it was made. When the document was read, the report also carries canonical, the canonical invoice the reader made of it (../invoice/canonical-invoice.schema.json), as a stored invoice’s canonical file holds it. |
202 |
The operation was accepted. Poll or stream the returned id. |
400 |
The envelope or base64 data is invalid (invalid_operation), a document is source data rather than a finished invoice (invalid_operation naming it; canonical JSON and a recognised customer export such as CSV, XLSX or an IDoc go to /v1/conversions), or the item limit is exceeded (operation_too_large), or policyVersion is not a version this company has (unknown_policy_version) or not the current one (policy_version_superseded), or, with validateOnly, the document could not be read (unreadable_document). Nothing was accepted. |
401 |
No usable credential was sent (invalid_credentials). |
403 |
No workspace plan is in force (workspace_plan_unavailable), the workspace is closed (workspace_closed), or validation is not included (operation_not_included). |
409 |
The idempotency key was used for different request bytes (idempotency_key_reused). |
413 |
The encoded operation envelope exceeds 14 MB (operation_too_large). The decoded invoice-data limit remains 10 MB. Nothing was accepted. |
429 |
The current plan assignment has no remaining document quota (document_quota_exceeded). Nothing was accepted. |
503 |
The operation could not be stored (store_unavailable). Nothing was accepted and nothing was validated. It says nothing about the invoices; send it again. |
/v1/validationscurl -X POST https://api.certinvo.com/v1/validations \
-H "Authorization: Bearer $CERTINVO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @body.jsonimport { readFile } from 'node:fs/promises'
const response = await fetch(`https://api.certinvo.com/v1/validations`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
'Content-Type': 'application/json',
},
body: await readFile('body.json'),
})
console.log(response.status, await response.json())import os
import requests
response = requests.post(
"https://api.certinvo.com/v1/validations",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
data=open("body.json", "rb"),
)
print(response.status_code, response.text){
"schemaVersion": "0.32",
"context": {
"jurisdiction": "string",
"profile": "string",
"policy": "string",
"renderings": [
"string"
],
"rulebookSelection": "automatic"
},
"profiles": [
{
"syntax": "ubl",
"verdict": "rejected",
"name": "string",
"rulebook": "string",
"strength": "REQUIRED",
"rules": [
"string"
],
"rendering": "ubl",
"run": "string",
"ruleset": "string",
"rulesetRelease": "string",
"rulesetSha256": "string",
"levels": "string",
"sha256": "string"
}
],
"ruleset": "string",
"verdict": "rejected",
"document": {
"source": "json",
"syntax": [
"ubl"
],
"invoiceNumber": "string",
"typeCode": "string",
"profile": {
"customizationId": "string",
"profileId": "string"
}
},
"schemaFindings": [
{
"path": "string",
"keyword": "string",
"params": {}
}
],
"ruleFindings": [
{
"terms": [
{
"id": "string",
"name": "string"
}
],
"decides": true,
"rulebooks": [
"string"
],
"rule": "string",
"location": "string",
"severity": "error",
"text": {
"de": {
"source": "catalog",
"message": "string",
"fix": "string",
"legalNotice": "string"
},
"en": {
"source": "catalog",
"message": "string",
"fix": "string",
"legalNotice": "string"
}
}
}
],
"documentFindings": [
{
"kind": "pdf-xml-amounts-disagree",
"about": "string",
"xmlStates": "string",
"pdfStates": [
"string"
],
"text": {
"de": {
"source": "catalog",
"message": "string",
"fix": "string",
"legalNotice": "string"
},
"en": {
"source": "catalog",
"message": "string",
"fix": "string",
"legalNotice": "string"
}
}
}
],
"rulesetRelease": "string",
"rulesetSha256": "string",
"engineVersion": "string",
"engineSha256": "string",
"canonicalSnapshotHash": "string",
"snapshotHashAlgorithm": "sha256-rfc8785",
"writerSha256": "string",
"pdfTools": {
"mustang": "string",
"verapdf": "string"
},
"refused": [
{
"rendering": "string",
"because": "string",
"reasons": [
{
"code": "string",
"values": {}
}
]
}
],
"notApplicable": [
{
"rulebook": "string",
"strength": "REQUIRED",
"rendering": "ubl",
"syntax": "ubl"
}
],
"omissions": [
{
"rendering": "string",
"what": "string",
"code": "string",
"values": {}
}
],
"recommendations": {
"formats": [
"string"
],
"addFields": [
{
"term": "string",
"alternatives": [
"string"
],
"label": {
"de": "string",
"en": "string"
}
}
],
"references": [
{
"label": "string",
"url": "string"
}
]
},
"skipped": [
{
"rulebook": "string",
"why": "FILE"
}
]
}