> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.robaws.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Exporting Intrastat data to Exact Online

In the integration with [Exact Online](https://support.robaws.com/en/article/how-does-the-exact-online-integration-work-prtq03/) it is possible to export Intrastat data from Robaws to Exact Online as well. This happens automatically for incoming invoices from intra-EU suppliers (a supplier in a different EU country from your own company).

**Intrastat** is the system the European Union uses to collect statistics on trade in goods between the member states.
If your business exceeds a certain threshold, you have to report a number of details to the national authority periodically. You do this via Exact Online, and the data can be sent along from Robaws.

## Settings in Robaws

To be able to export the Intrastat data, you have to activate the 'Intrastat' setting. You will find this setting via settings > incoming invoices > settings. As soon as you activate this setting, a few other fields appear that you need to set.

| Field | Explanation |
| ---- |
| Default region | This is the region that is sent along by default |
| Transaction A | The default transaction code A |
| Transaction B | The default transaction code B |
| Goods code extra field | This is the reference to the extra field on items in which the goods code (CN code) is filled in |

||| It is important that you create an extra field via the item settings in which you can fill in the goods code. This is also the field that is linked in the 'Goods code extra field' setting
||| Make sure that both your own company and the supplier have a country code
 
In addition to the settings above, it is important that **the following fields on the item record are always filled in:**

* Weight (kg): the weight per unit of the item
* Goods code: this code is filled in in the extra field created for it (see the settings above)


## Exporting to Exact Online

When the incoming invoice is exported to Exact Online and the supplier is an intra-EU supplier, the following data is sent along per invoice line (with an item):

1. Region (from the settings)
2. Country of the supplier (from the supplier's address)
3. Transaction code A and B (from the settings)
4. Statistical weight (calculated on the basis of the item weight)
5. Goods code (from the item's extra field)
6. Statistical quantity (the quantity on the invoice line)
7. Statistical value (the total amount excl. VAT of the invoice line)

When exporting, Robaws runs a validation and checks whether all the required data is present.
If data is missing, an error message is given.