Reads a business document using AI (OCR) and classifies it by document type: invoice or bill, credit note, receipt, delivery note, quote request, or any other document such as an order or contract. It reads PDF files, scans and photos (JPEG, PNG), Word (DOCX) and Excel (XLSX) files and text files such as TXT or CSV. For invoices, credit notes and receipts it also returns the invoice data (seller, buyer, items, totals, payment details). Up to 10 own fields can be read from every document.
Detect document type and extract data (AI)| Property | Name | Type | Description |
|---|---|---|---|
documentFile | Document File required | file (base64) | The document as PDF, JPEG or PNG (scan or photo), as XML e-invoice, or as DOCX, XLSX or text file (e.g. TXT, CSV). |
additionalInstructions | Additional Instructions advanced | string | Optional hints for the AI. They can also set the document type, e.g. 'Treat delivery notes with prices as invoice' or 'Only invoice or credit note, otherwise document'. Max 2000 characters. |
additionalFields | Additional Field advanced | array of DtoAdditionalField | Up to 10 own fields to extract from any document type. |
readHeaderAndFooterInDetail | Read Header and Footer in Detail advanced | boolean | If true, the top and bottom of page 1 are also sent zoomed in, so small print like bank details is read better. default: true |
validateStandardFields | Validate Standard Fields advanced | boolean | If true, IBAN, VAT IDs and totals of invoices, credit notes and receipts are checked; problems set 'Needs Review'. default: true |
reviewLevel | Review Level advanced | string (dropdown) | How often values are marked for review: Rarely, Normal or Often. default: "Normal"; dynamic dropdown |
dataSourceMode | Data Source Mode advanced | string (dropdown) | Auto: embedded e-invoice first, AI for the rest. Always AI. XML Only: no AI. default: "Auto"; dynamic dropdown |
| Property | Name | Type | Description |
|---|---|---|---|
invoiceNumber | Invoice Number | string | Recognized invoice number |
invoiceDate | Invoice Date | string | Recognized invoice date (format: yyyy-MM-dd) |
currencyCode | Currency | string | Recognized currency code (e.g., EUR, USD) |
sellerName | Seller Name | string | Recognized seller company or person name |
sellerStreet | Seller Street | string | Recognized seller street address |
sellerPostcode | Seller Postcode | string | Recognized seller postal code |
sellerCity | Seller City | string | Recognized seller city or locality |
sellerCountry | Seller Country | string | Recognized seller country (ISO code, e.g., DE) |
sellerVatId | Seller VAT ID | string | Recognized seller VAT ID |
buyerName | Buyer Name | string | Recognized buyer company or person name |
buyerStreet | Buyer Street | string | Recognized buyer street address |
buyerPostcode | Buyer Postcode | string | Recognized buyer postal code |
buyerCity | Buyer City | string | Recognized buyer city or locality |
buyerCountry | Buyer Country | string | Recognized buyer country (ISO code, e.g., DE) |
iban | IBAN | string | Recognized bank account IBAN for payment |
paymentDueDate | Payment Due Date | string | Recognized payment due date (format: yyyy-MM-dd) |
totalNetAmount | Total Net Amount | number | Recognized total net amount (without VAT) |
totalVatAmount | Total VAT Amount | number | Recognized total VAT amount |
totalGrossAmount | Total Gross Amount | number | Recognized total gross amount (including VAT) |
invoiceLines | Invoice Items | array of DtoRecognizedInvoiceLineV2 | Recognized line items of the document (invoice lines, or positions of a delivery note, order or quote request) |
needsReview | Needs Review | boolean | True if a check failed (IBAN, VAT ID, totals, own field checks), a required own field is missing, or the AI was not sure enough |
checkStatus | Check Status | string | OK if no check found anything, Check if a value should be looked at, Error if a hard check failed (totals, IBAN, a required field or no XML) |
documentType | Document Type | string | Detected document type: invoice, credit note, receipt, delivery note, quote request, or document if unclear. |
documentTypeConfidence | Document Type Confidence | integer (int32) | How certain the AI is about the document type, from 0 to 100. |
deliveryDate | Delivery Date advanced | string | Recognized delivery date (format: yyyy-MM-dd) |
buyerReference | Buyer Reference advanced | string | Recognized buyer reference or Leitweg-ID (BT-10) |
buyerOrderNumber | Order Number advanced | string | Recognized purchase order number of the buyer (BT-13) |
sellerEmail | Seller Email advanced | string | Recognized seller email address |
buyerVatId | Buyer VAT ID advanced | string | Recognized buyer VAT ID |
bic | BIC advanced | string | Recognized bank identifier code (BIC) |
paymentRecipient | Payment Recipient advanced | string | Recognized name of the payment recipient |
paymentTerm | Payment Term advanced | string | Recognized payment term |
isReadyForEInvoice | Ready for E-Invoice advanced | boolean | Whether the recognized data contains all fields required to create a valid e-invoice (EN 16931). If false, check 'Missing Required Fields' |
missingRequiredFields | Missing Required Fields advanced | array of string | Required e-invoice fields and required own fields that could not be recognized, for example 'Invoice Number (BT-1)' |
notes | Notes advanced | array of string | Notes about the recognition, for example skipped pages or uncertain values |
checkHints | Check Hints advanced | array of DtoCheckHint | One entry per finding with a fixed code, the sentence from Notes and the field it concerns; empty if the status is OK |
dataSource | Data Source advanced | string | Where the values come from: AI (read by the AI), XML (from the e-invoice) or XML and AI (missing fields by AI); empty if nothing was read |
additionalFieldValues | Additional Field Values advanced | object | Values of your own fields with 'Applies To' Document, by field name (line fields are in 'Invoice Items') |
additionalField1Value | Additional Field 1 Value advanced | string | Value of own field 1 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField2Value | Additional Field 2 Value advanced | string | Value of own field 2 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField3Value | Additional Field 3 Value advanced | string | Value of own field 3 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField4Value | Additional Field 4 Value advanced | string | Value of own field 4 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField5Value | Additional Field 5 Value advanced | string | Value of own field 5 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField6Value | Additional Field 6 Value advanced | string | Value of own field 6 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField7Value | Additional Field 7 Value advanced | string | Value of own field 7 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField8Value | Additional Field 8 Value advanced | string | Value of own field 8 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField9Value | Additional Field 9 Value advanced | string | Value of own field 9 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalField10Value | Additional Field 10 Value advanced | string | Value of own field 10 in the order of 'Additional Field' (empty for a field with 'Applies To' Line) |
additionalFieldDetails | Additional Field Details advanced | array of DtoAdditionalFieldDetail | Details for each own field with 'Applies To' Document: value, certainty, page, found text and whether it needs review |
DtoAdditionalField| Property | Name | Type | Description |
|---|---|---|---|
fieldName | Field Name | string | Name of the field, e.g. 'Project number'. Used as key in 'Additional Field Values'. |
fieldDescription | Field Description | string | Where to find the value on the document, e.g. 'top right, after Project:'. |
fieldType | Field Type | string (dropdown) | Kind of value: Text, Number, Date or Amount. default: "Text"; dynamic dropdown |
required | Required advanced | boolean | If true, a missing value is listed in 'Missing Required Fields' and marked for review. default: false |
checkType | Check Type advanced | string (dropdown) | Optional check: None, IBAN, VAT ID, Tax Number, Date, Amount or Custom Format. default: "None"; dynamic dropdown |
customFormat | Custom Format advanced | string | Pattern for 'Custom Format': # = digit, A = letter, e.g. P-######. |
appliesTo | Applies To advanced | string (dropdown) | Document = one value per document, Line = one value per line item or table row. default: "Document"; dynamic dropdown |
DtoRecognizedInvoiceLineV2| Property | Name | Type | Description |
|---|---|---|---|
description | Description | string | Recognized description of the invoiced item or service |
quantity | Quantity | number | Recognized quantity of the item |
unitCode | Unit Code | string | Recognized measurement unit (ISO code, e.g., C62 for piece) |
unitPrice | Unit Price | number | Recognized net unit price after line discount, without tax. If it is missing or does not match the line net amount, it is derived from line net amount and quantity (see Notes) |
vatPercent | VAT Percent | number | Recognized VAT rate for the item (e.g., 19 for 19%) |
lineNetAmount | Line Net Amount | number | Recognized net amount of the line |
articleNumber | Article Number | string | Recognized article number of the seller (BT-155) |
grossUnitPrice | Gross Unit Price | number | Recognized unit price before line discount, without tax (BT-148) |
discountPercent | Discount Percent | number | Recognized line discount in percent (e.g., 40 for 40%) |
discountAmount | Discount Amount | number | Recognized discount amount of the whole line, without tax (BT-136) |
additionalFieldValues | Additional Field Values advanced | object | Values of your own fields with 'Applies To' Line for this line, by field name |
additionalFieldDetails | Additional Field Details advanced | array of DtoAdditionalFieldDetail | Details for each own field with 'Applies To' Line for this line: value, certainty, page, found text and whether it needs review |
DtoAdditionalFieldDetail| Property | Name | Type | Description |
|---|---|---|---|
fieldName | Field Name | string | Name of the own field |
value | Value | string | Recognized value (dates as yyyy-MM-dd, amounts with a decimal point) |
certainty | Certainty | integer (int32) | How sure the AI is, from 0 to 100 |
needsReview | Needs Review | boolean | True if the check failed, a required value is missing, or the certainty is below the review level |
page | Page advanced | integer (int32) | Page where the value was found, starting at 1 |
foundText | Found Text advanced | string | Text on the document the value was read from |
DtoCheckHint| Property | Name | Type | Description |
|---|---|---|---|
code | Hint Code | string | Fixed code of the finding, for example TotalsMismatch, IbanInvalid or PagesSkipped |
text | Hint Text | string | The finding as an English sentence (the same as in Notes, except for LowCertainty) |
field | Hint Field | string | The field the finding concerns, for example IBAN or Line 2: Cost Center; empty if it concerns the whole document |
{
"documentFile": "<base64-encoded file content>"
}
Example generated from the connector definition.