# 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="/files/ar2EJ801C2oCru9uYuEN" alt=""><figcaption></figcaption></figure>

2. klik op nieuw&#x20;

<figure><img src="/files/7PsYq6MWenznylZjdvOL" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/xM57Fp1I2fq49h9soRSx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0EmCVyoRqEGLlHoymtMn" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/7GFTlQlJx88v5a4jd3lv" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/V77GzXbo6Audl13SCXMd" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pazion.gitbook.io/order2flow/integraties/afas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
