/v1/invoices/{id}Returns the stored record of one invoice: what it is, the validation result, and which files exist. It always answers JSON.
To get the files themselves, use GET /v1/invoices/{id}/download.
The record includes the provenance of the result: the ruleset version, the engine version and the mapping config version, as recorded at filing. These values cannot be added later. A null value means it was never recorded.
Path parameters
- idstring (uuid)Required
Response
A 200 answer carries these fields.
- idstring (uuid)Required
- channelstringRequired
How the invoice came in.
upload: a file a person uploaded in the console.made: an invoice a person created or edited in the console.api: sent with an API key, including the SAP IDoc route.email: an attachment of a mail to your invoice inbox.sftp: a file dropped in your SFTP folder. Invoices filed before 2026-10-10 were given the channel their operation, their mail or SFTP drop, or the person who sent them shows; one with none of these isapi.One ofupload,made,api,email,sftp. - releasedbooleanRequired
Whether you can download this invoice's files, based on the newest verdict. False for an invoice you created that was rejected or never validated, or that waits for a fact a rule turns on. True for a received invoice; one your settings hold is still readable, and only its DATEV files, and for a bank account hold its forward, wait for its release (see
hold). An invoice already sent keeps the verdict it was sent with: when that verdict accepted it, its files stay downloadable whatever a later check says (seesent). Sending it again, by email or to your own system, still needs the newest verdict to accept it. - holdobject or null
A received invoice your settings hold, and the decision on it. It stays readable; no DATEV export takes it until it is released, and a hold for its bank account keeps it from the forward to your own system too. Null when it was never held.
Show 5 child fields
- heldAtstring (date-time)Required
- formatstringRequiredOne of
ubl,cii,pdf. - policyVersioninteger or nullRequired
- reasonsarray of stringRequired
Why it is held.
rejected, the gate rejected a file of a format your settings hold; otherwise a bank account finding your settings hold for. - releasedobject or nullRequired
A person's decision, or null while it holds.
released, the invoice goes on;dismissed, it stays out for good.Show 4 child fields
- bystringRequired
- atstring (date-time)Required
- reasonstringRequired
- decisionstringRequiredOne of
released,dismissed.
- attentionobject or null
What needs a person about this invoice, read the same way
GET /v1/attentionreads it.needs-attentionwhile a reason stands. With none left:processingwhile its email waits for its next attempt,completedonce its history says it was sent (or, for a received invoice, exported), otherwiseready. Ready says no reason stands; it does not say the next step happened.Show 2 child fields
- statestringRequiredOne of
needs-attention,processing,completed,ready. - reasonsarray of objectRequired
Show 4 child fields
- codestringRequiredOne of
rejected,on_hold,bank_account_on_hold,duplicate_undecided,sending_failed,email_bounced,arrival_not_accepted,file_not_readable,virus_found. - sincestring (date-time) or nullRequired
When the row that says it was written.
- holdsstring or nullRequired
What it holds back. Null when it holds nothing back and asks for review only.
One ofsending,automatic_sending,email_delivery,datev_export,datev_export_and_forwarding,filing,null. - actionsarray of stringRequired
The actions that exist for it. Each is still allowed or refused by its own route.
- sentobject or null
The check this invoice was sent with: the newest check before the history first said it was sent (
api:emailed, orapi:sentfrom your own system). A later check of a sent invoice is information only: it is kept in the history with its policy version, and it does not lock your own copy. Null when the invoice was never sent.Show 4 child fields
- atstring (date-time)Required
When the history first said it was sent.
- validationIdstring or nullRequired
The check it was sent with. Null when nothing had checked it then.
- verdictstring or nullRequiredOne of
clean,acceptable-with-findings,rejected,null. - policyVersioninteger or nullRequired
The validation policy version that check ran under. Null when no policy decided it.
- externalIdstring or null
- replacesstring (uuid) or nullRequired
The id of the version this invoice replaces. Null for a first filing.
- replacedBystring (uuid) or nullRequired
The id of the version that replaced this one. Null for the newest version, which is the one lists show.
- lockedboolean
True once the invoice left (emailed, forwarded, put in the SFTP folder, a file downloaded, reported sent, or answered by the buyer). No new version replaces it; a change is a correction or a credit note that names it.
- printLanguageobject or null
The language the invoice's page prints in, decided when it was filed, and why. Every later PDF of it prints in it. Null for an invoice that arrived, or one filed before 2026-10-14, which prints in the organisation's language.
Show 3 child fields
- langstringRequiredOne of
de,en,fr. - secondLangstringOne of
de,en,fr. - whystringRequired
Chosen for the invoice
One ofchosen,buyer,country,company.
- deliveryPlanobject or null
The customer this invoice was made for, with the files it needs and how they reach it, as they were when the invoice was filed. A later change to the customer does not change it. A delivery the conversion chose for the invoice is kept over the customer's; with no customer named, the plan has no
customerand itsfilesare empty. Null when the conversion named neither, or for an invoice filed before 2026-10-09.Show 4 child fields
- customerobject
Show 2 child fields
- idstringRequired
- namestringRequired
- filesarray of stringRequired
- deliveryobjectRequired
Show 4 child fields
- channelstringRequired
- tostringRequired
The one address the invoice is sent to.
- filestringRequired
The file attached, one of
files. - sendingstring
Whether this customer's invoices are emailed by themselves after the check, or wait for a person. Absent: the company's sending setting decides. Which verdicts are sent by themselves is always the company's setting.
One ofautomatic,by-hand.
- sendingobject
Present only when this invoice is emailed by itself, as the sending setting and the customer said when it was filed. Absent means a person sends it.
Show 3 child fields
- modestringRequired
- verdictsarray of stringRequired
- duplicatesstring
The sending setting's choice for a likely duplicate when it was filed. Absent on an invoice filed before the choice existed: held.
One ofhold,send.
- duplicateobject
Set when the invoice was flagged as a likely duplicate of
of, with the user's decision, null while undecided. Null when it never was.Show 2 child fields
- ofstring (uuid)Required
The earlier invoice this one repeats.
- decisionstring or nullRequiredOne of
kept,dismissed,null.
- sendingobject or null
The email that sends this invoice by itself.
pendingwaits for its next attempt,sentwas accepted by the email provider,failedwill not be tried again anderrorsays why. Null when the invoice was never queued, because a person sends it.Show 6 child fields
- statestringRequiredOne of
pending,sent,failed. - tostringRequired
- filestringRequired
- attemptsintegerRequired
- errorstring or nullRequired
- sentAtstring (date-time) or nullRequired
- peppolobject or null
For an invoice delivered by Peppol: whether everything an access point needs to send it is there. No access point is connected, so nothing is sent.
checkinguntil the Peppol registry is asked, again later when it cannot be;readywhen the Peppol file was kept, the seller and the buyer each have a participant ID, and the registry lists the buyer for this document;not-readywithreasons:no-peppol-file,no-seller-id,no-buyer-id,buyer-not-registeredorbuyer-takes-no-such-document. Null when the invoice is not delivered by Peppol, or was rejected.Show 3 child fields
- statestringRequiredOne of
checking,ready,not-ready. - reasonsarray of stringRequired
- checkedAtstring (date-time) or nullRequired
- sourceFileobject or null
The customer's file this invoice was made from through a mapping, kept as it arrived.
sha256is what its bytes hash to,mediaTypewhat the mapping read it as, andrecordwhich invoice of the file this is, from 0. Download it withformat=source-file. Null for an invoice made from no file of the customer's, such as canonical JSON sent as it is, or filed before 2026-09-29.Show 3 child fields
- sha256stringRequired
- mediaTypestringRequired
- recordintegerRequired
- directionstringRequiredOne of
in,out. - createdAtstring (date-time)Required
- mediaTypestringRequired
- verdictstring or nullRequiredOne of
clean,acceptable-with-findings,rejected,null. - invoiceNumberstring or null
Invoice number (BT-1), taken from the model read at filing. It is never generated. Null when no model could be read.
- issueDatestring (date) or null
Invoice issue date (BT-2). Null when no model could be read.
- dueDatestring (date) or null
Payment due date (BT-9). Null when the invoice states none, or when no model could be read.
- currencystring or null
Invoice currency code (BT-5). Null when no model could be read.
- sellerstring or null
Seller name (BT-27). Null when no model could be read.
- buyerstring or null
Buyer name (BT-44). Null when no model could be read.
- payableAmountstring or null
Amount due for payment (BT-115), as a string. Parse it as a decimal, not a float, so the amount stays exact.
- taxAmountstring or null
Invoice total VAT amount (BT-110), as a string, for the same reason as
payableAmount. - sellerTradingNamestring or null
Seller trading name (BT-28). Null when the invoice states none.
- buyerTradingNamestring or null
Buyer trading name (BT-45). Null when the invoice states none.
- buyerIdstring or null
Buyer identifier (BT-46). Null when the invoice states none.
- netAmountstring or null
Invoice total amount without VAT (BT-109), as a string, for the same reason as
payableAmount. - typeCodestring or null
Invoice type code (BT-3), such as
380for an invoice or381for a credit note. A credit note owes the buyer, so a total counts its amounts minus. Null when no model could be read. - precedingInvoiceNumberstring or null
Preceding invoice reference (BT-25), the first one the invoice names. A correction (
384) that states the full amount replaces that invoice in a total; one with minus amounts is added to it. Null when the invoice names none. - paymentStatusstring or null
paidwhen the history holdsapi:paid;overduewhen it is not paid and the later of the due date and the newest reminder's due date is before today; elseopen. A credit note owes the buyer, so it is neveroverdue: it isopenuntil it is settled (api:paid). Null for an invoice the validator rejected, which asks nobody for payment.One ofopen,overdue,paid,null. - reportobject or null
The validator's report, stored and returned whole, as described in the check report. It is never rebuilt. Null when the invoice was never validated.
- provenanceobjectRequired
What produced this result: the ruleset, the engine version, the mapping config version and the validation policy version. These values are written when the invoice is filed and cannot be added later. A null field means it was not recorded.
Show 7 child fields
- rulesetstring or nullRequired
- profilesarray of object or nullRequired
Which rulebook checked which file, as stored with the verdict. It is the report's own
profiles, with one entry per run under a policy. Null for invoices validated before this was recorded. - rulesetReleasestring or nullRequired
- rulesetShastring or nullRequired
- engineVersionstring or nullRequired
- mappingConfigVersionstring or nullRequired
- policyVersioninteger or nullRequired
- artefactsarray of objectRequired
The files stored for this invoice.
/downloadserves exactly these.ubl,cii,zugferd-pdf: files the writer produced.canonical: the model read from a received document. A received invoice has this file even though nobody here wrote the invoice.not-carried: what the reader could not carry into the model, with the path, the document's own characters and the reason for each element. Present only when something could not be carried.gate-report: the KoSIT validator's own HTML report (Prüfbericht) on a received document, stored as the validator wrote it, with the file named as it is stored (original.xml,original.pdf) and the time with its zone.peppol: the Peppol BIS version. Present only when the frozen policy requested it and the Peppol rules did not reject it.peppol-reportandpeppol-gate-report: reports kept by invoices filed before policy-based Peppol reporting was introduced. New operations carry the Peppol run in their item report instead.omissions: what the files made for this invoice leave out, as JSON{ uncarriable, omissions }. Kept for every invoice made here, with empty lists when nothing is left out. An invoice filed before 2026-09-17 has none, and no list is made up for it.
Show 4 child fields
- kindstringRequiredOne of
ubl,cii,zugferd-pdf,canonical,not-carried,gate-report,peppol,peppol-report,peppol-gate-report,en16931-ubl,en16931-cii,factur-x,omissions,trace,extended-cii,zugferd-extended. - mediaTypestringRequired
- labelstringRequired
For a
gate-reportunder a policy, the run it belongs to. Use it as/download?format=gate-report&label=<label>. Empty for every other file, and for gate reports stored before policies existed. - bytesintegerRequired
Size in bytes. Download the file itself from
/download.
Status codes
| Status | Meaning |
|---|---|
200 |
The invoice record. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
No such invoice exists for this company (unknown_invoice). The same answer is given when another company owns the invoice or the id is not valid. This API never returns 403 here. |
/v1/invoices/{id}curl https://api.certinvo.com/v1/invoices/$INVOICE_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY"const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/invoices/${invoiceId}`, {
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.get(
f"https://api.certinvo.com/v1/invoices/{invoice_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"channel": "upload",
"released": true,
"hold": {
"heldAt": "2026-09-17T09:30:00Z",
"format": "ubl",
"policyVersion": 0,
"reasons": [
"rejected"
],
"released": {
"by": "string",
"at": "2026-09-17T09:30:00Z",
"reason": "string",
"decision": "released"
}
},
"attention": {
"state": "needs-attention",
"reasons": [
{
"code": "rejected",
"since": "2026-09-17T09:30:00Z",
"holds": "sending",
"actions": [
"review_checks"
]
}
]
},
"sent": {
"at": "2026-09-17T09:30:00Z",
"validationId": "string",
"verdict": "clean",
"policyVersion": 0
},
"externalId": "string",
"replaces": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"replacedBy": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"locked": true,
"printLanguage": {
"lang": "de",
"secondLang": "de",
"why": "chosen"
},
"deliveryPlan": {
"customer": {
"id": "string",
"name": "string"
},
"files": [
"string"
],
"delivery": {
"channel": "email",
"to": "string",
"file": "string",
"sending": "automatic"
},
"sending": {
"mode": "automatic",
"verdicts": [
"clean"
],
"duplicates": "hold"
}
},
"duplicate": {
"of": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"decision": "kept"
},
"sending": {
"state": "pending",
"to": "string",
"file": "string",
"attempts": 0,
"error": "string",
"sentAt": "2026-09-17T09:30:00Z"
},
"peppol": {
"state": "checking",
"reasons": [
"no-peppol-file"
],
"checkedAt": "2026-09-17T09:30:00Z"
},
"sourceFile": {
"sha256": "string",
"mediaType": "string",
"record": 0
},
"direction": "in",
"createdAt": "2026-09-17T09:30:00Z",
"mediaType": "string",
"verdict": "clean",
"invoiceNumber": "string",
"issueDate": "2026-09-17",
"dueDate": "2026-09-17",
"currency": "string",
"seller": "string",
"buyer": "string",
"payableAmount": "string",
"taxAmount": "string",
"sellerTradingName": "string",
"buyerTradingName": "string",
"buyerId": "string",
"netAmount": "string",
"typeCode": "string",
"precedingInvoiceNumber": "string",
"paymentStatus": "open",
"report": {},
"provenance": {
"ruleset": "string",
"profiles": [
{}
],
"rulesetRelease": "string",
"rulesetSha": "string",
"engineVersion": "string",
"mappingConfigVersion": "string",
"policyVersion": 0
},
"artefacts": [
{
"kind": "ubl",
"mediaType": "string",
"label": "string",
"bytes": 0
}
]
}