Auto-detect and parse e-invoice
Automatically detect the e-invoice format and country, then parse the document. The country is extracted from the document content (seller country). A PDF is opened first: format and country come from its embedded XML, so it answers like that XML; a PDF without embedded XML answers 400 NO_EMBEDDED_XML. 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
API Key authentication. Use sk_live_* for production or sk_test_* for testing.
Request
Base64 encoded document (XML or PDF with embedded XML)
Original filename (helps detect format)
Response
SHA-256 hash of the input document
Parsing errors (if any)
Parsing warnings (if any). A party address without a country (seller, buyer, tax representative, payee) gets the country of the format, and the warning PARTY_COUNTRY_ASSUMED names the field and the place in the document.
Informational messages (e.g., XML extracted from PDF)
