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.

bicstring

Bank Identifier Code for SWIFT transfers (whitespace removed).

currencystring

ISO-4217 currency code (e.g., EUR, GBP).

customer_addressstring

Billing address of the customer.

customer_namestring

Name of the customer or purchasing entity.

customer_vat_idstring

Customer VAT identification number if reverse charge applies.

due_datestring

Date payment is due, in ISO-8601 format (YYYY-MM-DD).

ibanstring

International Bank Account Number for payment (whitespace removed).

invoice_datestring

Date the invoice was issued, in ISO-8601 format (YYYY-MM-DD).

invoice_numberstring

Unique invoice identifier assigned by the vendor.

payment_termsstring

Terms of payment (e.g., Net 30, Due on Receipt).

subtotal_amountnumber

Total amount before VAT, as a decimal number.

total_amountnumber

Final amount due including VAT.

vat_amountnumber

Total VAT amount, as a decimal number.

vat_rate_percentnumber

VAT tax rate as a percentage (e.g., 19.0 for 19%).

vendor_addressstring

Full business address of the vendor.

vendor_namestring

Legal name of the invoicing business.

vendor_vat_idstring

Vendor VAT identification number (Umsatzsteuer-Identifikationsnummer or equivalent).

curl
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.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.