Auto-detect and parse e-invoice

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.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

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

Parsing errors (if any)

warningslist of objectsOptional

Parsing warnings (if any)

infoslist of objectsOptional

Informational messages (e.g., XML extracted from PDF)

Errors

400
Auto Parse Request Bad Request Error
401
Auto Parse Request Unauthorized Error
403
Auto Parse Request Forbidden Error
429
Auto Parse Request Too Many Requests Error
500
Auto Parse Request Internal Server Error