Skip to content

Feature List

Which Data Fields can Smartscan extract?

Below is an overview of all the features we support.

The total amount, supplier name, and the issued date on are essential parts of a business document. Smartscan also provides more details from the receipt based on the region, such as IBAN, Bank Account Number for European businesses, Payment IDs, etc.

  • The caller has to specify which fields they want processed by the API.
  • We continuously work with our integrations to expand our feature and language support. Please contact us if you would like us to look into new features.

Information

The current setup of Smartscan exclusively scans the first and last pages of a document, with the expection of purchase lines which scan the first 5 pages of the document. This targeted approach significantly speeds up the prediction process. If you need to extract data from documents with more than 5 pages, please refer to the Asynchronous Processing.

Feature items

Information

Note that we do not infer implicit columns, meaning we do not infer information that is not stated explicitly in the line items table. Similarly, we won't return prices including and excluding VAT, unless they are listed explicitly in the document.

Feature name Premium Description Example
TOTAL_VAT The total VAT of the document. Will always be returned as absolute value. 1.29
TOTAL_INCL_VAT The total of the document including VAT. Will always be returned as absolute value. 21.50
TOTAL_EXCL_VAT The total of the document excluding VAT. Will always be returned as absolute value. 20.21
CURRENCY Three-letter currency code EUR
DOCUMENT_TYPE - Support for Invoice, Receipt, Credit Note and Debit Note
- The API returns absolute values for amounts, meaning the amount is returned without indicating whether it's positive or negative.
SUPPLIER_COUNTRY_CODE Two-letter country code of the supplier's origin DK
SUPPLIER_CORPORATE_ID Deprecated. Legacy Supplier Organisation Number 11122007
SUPPLIER_ORGANISATION_NUMBER * National company ID (e.g. CVR in DK or KvK in the NL) 11122007
SUPPLIER_VAT_NUMBER * VAT number for the supplier's company (relevant in the EU) DK11122007
SUPPLIER_NAME * Name of the supplier's company Visma
SUPPLIER_ADDRESS * Address of the supplier's company Gærtorvet 3, 1799 København
RECEIVER_COUNTRY_CODE * (experimental)
RECEIVER_VAT_NUMBER * (experimental)
RECEIVER_NAME * (experimental)
RECEIVER_ADDRESS * (experimental)
RECEIVER_ORDER_NUMBER * (experimental)
DOCUMENT_DATE * The date that the document was issued 2022-10-24
ORDER_DATE Deprecated. Use Document Date instead
DOCUMENT_NUMBER * A number that identifies the document (invoice number for invoices etc.) 012782-04
INVOICE_NUMBER Deprecated. Use Document Number instead
ORDER_NUMBER * (experimental). Order number if present on e.g. an invoice 20220201-1234
CUSTOMER_NUMBER * Number that identifies the customer 12345
OCR_LINE_DK_TYPE Danish Payment info: FIK Type field +71
OCR_LINE_DK_PAYMENT_ID Danish Payment ID: FIK Debitor or payment reference 000000001010123
OCR_LINE_DK_CREDITOR_ID Danish creditor ID: FIK Account number 12345678
OCR_LINE_SE_PAYMENT_ID Swedish Payment ID :Märkning 123456789
OCR_LINE_SE_BANKGIRO_CREDITOR_ID Swedish Payment info: BankGiro 0070070
OCR_LINE_SE_PLUSGIRO_CREDITOR_ID Swedish Payment info: PlusGiro 41
OCR_LINE_NO_PAYMENT_ID Norwegian Payment ID: Kundeidentifikasjon (KID) 123456789
OCR_LINE_FI_PAYMENT_ID Finnish Payment ID: Viitenumero 123456789
OCR_LINE_NL_PAYMENT_ID Dutch Payment ID: Betalingskenmerk 123456789
OCR_LINE_BE_PAYMENT_ID * Belgian Payment ID: OGM +++123/1234/12345+++
PAYMENT_METHOD Cash, Credit Card or Bank Transfer Bank Transfer
PAYMENT_DUE_DATE The last day that the payment has to be made 2022-10-24
CREDIT_CARD_LAST_FOUR Last four digits of the credit card that was used for payment 2345
IBAN IBAN code DK50 0007 0007 1112 22
BIC * BIC code DABADKKK
BANK_ACCOUNT_NUMBER * Bank account number 0002012345
BANK_REGISTRATION_NUMBER * Bank registration number (in countries where relevant - eg. Denmark) 0007
TEXT The full ASCII text of the document
TEXT_ANNOTATION The full OCR output for the document
LINES * Line text for invoice lines (heuristic, experimental)
PURCHASE_LINES * Line items information; description, quantity and prices. See all the supported fields listed below.
VAT_DISTRIBUTION * VAT levels; percentages and amount they represent. See the details here.
PREVIEW Base64 encoded rendering of first page of PDFs
DEFAULT A selection of frequently useful fields. See Smartscan's default fields below.

Field information

Deprecation

Note that ORDER_DATE, INVOICE_NUMBER and SUPPLIER_CORPORATE_ID are deprecated and will be removed from the default set in a future release. In the case of SUPPLIER_CORPORATE_ID it's recommended that users consider using either Supplier VAT number or Supplier Org Number instead of the deprecated supplier corporate ID, which can take either form.

  • SUPPLIER_CORPORATE_ID: It's recommended that users consider using either Supplier VAT number or Supplier Org Number instead of the deprecated supplier corporate ID, which can take either form.
  • Upcoming features: Smartscan currently cannot predict the Order Reference, but you can provide it in the feedback calls as ORDER_REFERENCE, which we can then use in the future to train Smartscan.

Default Feature Set

The DEFAULT feature includes the following fields:

DOCUMENT_DATE
DOCUMENT_NUMBER
ORDER_DATE
INVOICE_NUMBER
PAYMENT_DUE_DATE
CURRENCY
TOTAL_VAT
TOTAL_INCL_VAT
TOTAL_EXCL_VAT
SUPPLIER_CORPORATE_ID
SUPPLIER_COUNTRY_CODE
DOCUMENT_TYPE
PAYMENT_METHOD
CREDIT_CARD_LAST_FOUR

For each feature the caller can set maxResults (defaults to 1) and minConfidence (defaults to HIGH).

If both DEFAULT and a specific feature is set, the (settings for the) specific feature will take precedence.

Purchase Lines

Leverage Smartscan’s functionality for extracting line items. Note that this feature scans the first 5 pages of the provided document. In case there are more line items on the subsequent pages, Smartscan will not read them, but will provide a successful scan from the first 5 pages. If you need to extract line items from documents with more than 5 pages, please refer to the Asynchronous Processing with Smartscan.

Feature Name Type Description Example Value
itemNumber number This is the row number, position, index, or ID for this line item (if it is stated on the document). 1
code string Product code, product number, or SKU associated with the line item. It is an ID that the supplier assigns to each specific product. A25006
description string The text description for the line item. It will typically be the name of a product or a text describing the delivered service. Sport socks long 3-pack black 43-46
quantity string The quantity for this line item. 12
unit string The unit of the line item, e.g. ‘pieces’, ‘kg’, or ‘lb’. kg
unitPriceInclVat number The net or gross price of one unit of this item including vat. 12.5
unitPriceExclVat number The net or gross price of one unit of this item excluding vat. 12.5
unitPrice number The net or gross price of one unit of this item. The unit price is typically referred to as the “Price” or “unit price”, and it is not always stated if it is incl or excl the vat amount. 12.5
totalInclVat number The total amount including vat. 150.00
totalExclVat number The total amount excluding vat. 120.00
totalAmount number The total amount is typically present for every line item, and is usually found as the rightmost value on the line. This is the value we return as the total_amount. This general total amount of this line item often does not distinguish between including VAT (incl_vat) or excluding VAT (excl_vat). 150.00
totalVat number The total vat amount for the specific line item. 30.0
percentageVat string The tax/vat rate associated with the line item. 25.0
pageRef number Page number on which the line was found 25.0
discount future field
percentageDiscount future field

Multiple VAT levels

Leverage Smartscan’s functionality for extracting multiple VAT levels present on a document. This feature is executed only on the first and last page of the document.

To begin using and access the feature, simply include VAT_DISTRIBUTION as a requested feature from Smartscan, as shown in Smartscan's feature list. This will add VAT outputs wherever our system identifies them. Please note that if Smartscan determines the relevant VAT information is not present on the document, no VAT output will be generated.

Information

The feature is now supported in almost all our markets. We chose to disable a few countries since we could not validate that we can return answers of a suitable quality: Montenegro (ME), Russia (RU), Monaco (MC), Turkey (TR), Albania (AL), Belarus (BY), Hungary (HU), Liechtenstein (LI), Kosovo (XK).

Feature Name Type Description Example Value
percentage string VAT level percentage. The decimal delimiter is always a dot. "percentage": "25.0"
amount string The amount the percentage represents rounded to two decimal points. "amount": "585.45"
pageRef number Page number on which the distribution was found. "pageRef": 1
Example
Example json