/v1/datev-exports/{id}Path parameters
- idstring (uuid)Required
Response
A 200 answer carries these fields.
- idstring (uuid)Required
- directionstringRequiredOne of
in,out. - formatstringRequiredOne of
datev-ledger,datev-extf. - issuedFromstring (date)Required
- issuedTostring (date)Required
- includeExportedbooleanRequired
- settingsVersioninteger or nullRequired
The DATEV settings version used for the file. Null for a package exported without settings.
- createdAtstring (date-time)Required
- finishedAtstring (date-time) or nullRequired
- statestringRequired
A failed export produced no file. Its
errorsays why.One ofrunning,done,failed. - errorobject or nullRequired
Show 2 child fields
- codestringRequired
The writer's own code for the failure, such as
nothing-written. - messagestringRequired
- invoicesarray of objectRequired
Every invoice the export took, in the order the file holds them.
Show 9 child fields
- documentIdstring (uuid)Required
- invoiceNumberstring or nullRequired
- issueDatestring (date) or nullRequired
- resentbooleanRequired
- correctsstring (uuid) or nullRequired
For a correction, the version of the original it was booked against.
- reconciledbooleanRequired
You confirmed this correction from a
reconciliation_neededlist. - verdictstring or nullRequired
The conformance gate's newest verdict on this invoice when the export finished. Null when nothing graded it. An invoice you received is written even when it is
rejected: it is the sender's invoice and yours to book. An invoice you issued that was rejected is left out.One ofclean,acceptable-with-findings,rejected,null. - statusstringRequired
left-outcarries the writer's own code and reason inerror.not-writtenmeans the whole export failed.One ofpending,written,left-out,not-written. - errorobject
Show 2 child fields
- codestringRequired
Why this invoice was left out, such as
no-invoice-model. - messagestringRequired
- partsarray of objectRequired
The export file, one entry per part.
Show 4 child fields
- partintegerRequired
- namestringRequired
- mediaTypestringRequired
- bytesintegerRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The export as recorded, with each invoice it took, that invoice’s outcome, and the parts of its file. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
No such export exists for this company (unknown_datev_export). |
/v1/datev-exports/{id}curl https://api.certinvo.com/v1/datev-exports/$DATEV_EXPORT_ID \
-H "Authorization: Bearer $CERTINVO_API_KEY"const datevExportId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/datev-exports/${datevExportId}`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
datev_export_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.get(
f"https://api.certinvo.com/v1/datev-exports/{datev_export_id}",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"direction": "in",
"format": "datev-ledger",
"issuedFrom": "2026-09-17",
"issuedTo": "2026-09-17",
"includeExported": true,
"settingsVersion": 0,
"createdAt": "2026-09-17T09:30:00Z",
"finishedAt": "2026-09-17T09:30:00Z",
"state": "running",
"error": {
"code": "string",
"message": "string"
},
"invoices": [
{
"documentId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"invoiceNumber": "string",
"issueDate": "2026-09-17",
"resent": true,
"corrects": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"reconciled": true,
"verdict": "clean",
"status": "pending",
"error": {
"code": "string",
"message": "string"
}
}
],
"parts": [
{
"part": 0,
"name": "string",
"mediaType": "string",
"bytes": 0
}
]
}