Automatically detect the e-invoice format and country, then parse the document. The country is primarily extracted from the document content (seller country), with fallback to format-based inference. Requires e-invoice:*:*:parse entitlement.
### Sample documents
The "Examples" dropdown below offers the same set of real / placeholder documents as the explicit `/:countryCode/:format/parse` endpoint. Pick any one — the server will inspect the bytes and figure out format and country on its own.
Request
This endpoint expects an object.
datastringRequired
Base64 encoded document (XML or PDF with embedded XML)
filenamestringOptional
Original filename (helps detect format)
Response
Invoice parsed successfully
successboolean
Whether parsing was successful
detectionobject
Format and country detection result
invoiceobjectOptional
Extracted invoice data
hashstringOptional
SHA-256 hash of the input document
errorslist of objectsOptional
warningslist of objectsOptional
Parsing warnings (if any)
infoslist of objectsOptional
Informational messages (e.g., XML extracted from PDF)