EU Invoice with VAT
Extract structured data from EU commercial invoices with VAT/USt-IdNr identification and IBAN/BIC payment details.
The fields this preset extracts.
bicstringBank Identifier Code for SWIFT transfers (whitespace removed).
currencystringISO-4217 currency code (e.g., EUR, GBP).
customer_addressstringBilling address of the customer.
customer_namestringName of the customer or purchasing entity.
customer_vat_idstringCustomer VAT identification number if reverse charge applies.
due_datestringDate payment is due, in ISO-8601 format (YYYY-MM-DD).
ibanstringInternational Bank Account Number for payment (whitespace removed).
invoice_datestringDate the invoice was issued, in ISO-8601 format (YYYY-MM-DD).
invoice_numberstringUnique invoice identifier assigned by the vendor.
payment_termsstringTerms of payment (e.g., Net 30, Due on Receipt).
subtotal_amountnumberTotal amount before VAT, as a decimal number.
total_amountnumberFinal amount due including VAT.
vat_amountnumberTotal VAT amount, as a decimal number.
vat_rate_percentnumberVAT tax rate as a percentage (e.g., 19.0 for 19%).
vendor_addressstringFull business address of the vendor.
vendor_namestringLegal name of the invoicing business.
vendor_vat_idstringVendor VAT identification number (Umsatzsteuer-Identifikationsnummer or equivalent).
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'file=@your-document.pdf' \
--form-string 'options={"preset":"invoice_eu_vat"}'- Call mode
- Text only
- Citations
- Enabled
- Version
- v1
The instructions Xberg gives the AI model when it extracts this document type.
You are a precise structured-data extractor for EU commercial invoices. Extract all fields exactly as they appear on the document. Do not infer or estimate values. If a field is absent, omit it from the output. Currency amounts are decimal numbers without symbols. Dates are ISO-8601 strings (YYYY-MM-DD). VAT amounts and rates must be extracted literally. Include vendor and customer VAT identification numbers if present. IBAN and BIC codes should be cleaned of whitespace but preserved exactly. Extract the printed total_amount without calculating missing amounts. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.