> For the complete documentation index, see [llms.txt](https://pazion.gitbook.io/order2flow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pazion.gitbook.io/order2flow/integraties/afas.md).

# Afas

**Setup**&#x20;

Voor het verbinden van uw Afas account aan Order2Flow is het volgende nodig.&#x20;

**Benodigdheden**

* Het token en omgevingsId
* GET en Update permissies

**Het token en omgevingsId**

U kan hiervoor de volgende instructie te doorlopen: <https://help.afas.nl/help/NL/SE/App_Cnr_App.htm>

1. ga naar Algemeen ⇒ App connector

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2Fc9NpeqDBEYa8a1WPuTlO%2Fimage.png?alt=media&amp;token=9ed7cc11-29ec-430e-b3f1-b8928bdec9a4" alt=""><figcaption></figcaption></figure>

2. klik op nieuw&#x20;

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2FgGK4zI37nptPQ0s4xe73%2Fimage.png?alt=media&amp;token=c5f57a54-3a26-4c27-8db8-7aa172ddd627" alt=""><figcaption></figcaption></figure>

3. Voeg de juiste GET en UPDATE connectoren toe ( zie hieronder )

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2F3M7aILmk3RGuxiTJtZIZ%2Fimage.png?alt=media&amp;token=2005e570-78ef-47f5-b3a1-d618a1439d62" alt=""><figcaption></figcaption></figure>

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2F9TPD2FxmrSgHuKu9POer%2Fimage.png?alt=media&amp;token=e232aff2-dba0-4eae-b8c7-61520921697f" alt=""><figcaption></figcaption></figure>

4. Sla e XML token op en mail deze aan ons.

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2FYGChvjRBwqOz2bmdSI7X%2Fimage.png?alt=media&amp;token=72cc1923-3682-48d5-82ac-7e63e756ec1a" alt=""><figcaption></figcaption></figure>

5. Noteer het omgevingsId, deze staat voro de gebruiker en loopt tot de punt&#x20;

<figure><img src="https://83110003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ZmmN7slL4GczJoyiUv2%2Fuploads%2FIaTqzqk5XwjxQdOdAyWN%2Fimage.png?alt=media&amp;token=d5acd1d4-d752-41b9-b686-0b3f8dc05f38" alt=""><figcaption></figcaption></figure>

**GET en Update permissies**

Verder dient u het token te voorzien van minimaal de volgende rechten:

GET-CONNECTOR&#x20;

* Profit\_Deliveryaddress&#x20;
* Profit\_Debtor&#x20;
* Profit\_Article&#x20;
* Profit\_Article\_Basic&#x20;
* Profit\_Stock&#x20;
* Profit\_Deliverynotes&#x20;
* Profit\_Salesorders&#x20;
* Profit\_SalesPrice

UPDATE-CONNECTOR&#x20;

* KnSalesRelationOrg
* KnSalesRelationPer
* FbDeliveryNote
* FbSales
* FBItemArticle
* KnAddress
