# Line items - Table extraction

Typless defines line items as the connection of **at least 3** [extraction fields](https://typless.gitbook.io/typlessapi/typless/extraction-fields) that together represent a piece of information.\
The definition covers all table and line item extraction from documents. Line items can be repeated between 1 and N times on the document.

## Examples

### Line item on an invoice

![Single line item](https://files.readme.io/1046dc6-line_item.jpg)

### Line item in the general table

![Multiple line items](https://files.readme.io/4febf78-typless_3.PNG)

### Non-standard table

{% hint style="info" %}
**📘&#x20;**<mark style="color:blue;">**Fields for a single line item do not have to be in the same line**</mark>

As long as the line item fields are logically connected, Typless will find a way to extract them.
{% endhint %}

![Unstandardized line item structure](https://files.readme.io/52fb50b-tyoless_3.PNG)

When defining line items, define all the needed fields that occur on your documents.\ <mark style="color:red;">**If the field is missing, the system will return null as the result.**</mark>

### Multiline field

{% hint style="warning" %} <mark style="color:orange;">**🚧 Line item will only return the first line of a multiline field**</mark>

If a field on the supplier document has the value written in multiple lines, typless will only return the first line of the multiline field.
{% endhint %}

<figure><img src="https://files.readme.io/aa869f2-long_description.PNG" alt=""><figcaption><p>Only the marked values will be returned in the provided multi-line example</p></figcaption></figure>
