> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chift.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# AFAS

# 🚨 PRÉREQUIS

* Disposer d'un identifiant AFAS avec tous les droits d'administration listés dans la capture d'écran ci-dessus.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-1.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=ac2093c3d5f76776c7b5c7a3ce3b5fa4" alt="image.png" width="1051" height="1197" data-path="images/help/afas/afas-1.png" />

* Avoir téléchargé le fichier zip sur votre ordinateur et l'avoir décompressé.

[AFAS\_GetConnectors\_15122025.zip](/images/help/afas/1765813797282-AFAS_GetConnectors_15122025.zip)

* Paramètres AFAS :

Assurez-vous que l'option « Verbijzonderingen » est activée :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-3.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=0d3f7015763adcd4bffd5f0f1eb9874a" alt="imageAFAS.png" width="1600" height="684" data-path="images/help/afas/afas-3.png" />

Pour utiliser la logique d'autoNumber d'AFAS :

Assurez-vous que les cases suivantes sont remplies :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-4.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=aac6bf9c553d6c1076ecdaa54e877a4e" alt="imageAFAS2.png" width="1600" height="787" data-path="images/help/afas/afas-4.png" />

Précisez que la numérotation automatique est activée pour les débiteurs et les créditeurs :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-5.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=2da352f2c5aa42aa51208fd6536df1ca" alt="image.png" width="1600" height="854" data-path="images/help/afas/afas-5.png" />

&

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-6.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=6f7b93b5f66f73910f7530bd5e516cd7" alt="image.png" width="1600" height="919" data-path="images/help/afas/afas-6.png" />

# 💪 PRÉPARATION

### Étape 1 : Création d'une App Chift :

Rendez-vous sur [AFAS Online Login](https://idp.afasonline.com/Account/Login?) et connectez-vous avec vos identifiants AFAS.

⚠ **Important :** Utilisez une session Citrix (pas Citrix dans le navigateur). Vous ne pourrez pas copier les identifiants ultérieurement. ⚠

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-7.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=2b60fa98b8f704465ee4e81f77d2ec9b" alt="image.png" width="1600" height="801" data-path="images/help/afas/afas-7.png" />

Accédez à la page **General** et ouvrez **App connector**.

Créez un nouveau App connector.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-8.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=44996ecd5323aa3dc0fc89ed2d794244" alt="image.png" width="1600" height="717" data-path="images/help/afas/afas-8.png" />

Configurez l'App connector comme indiqué dans la capture d'écran suivante :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-9.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=1f13ed78bbb952f84ad71acf12524c57" alt="image.png" width="1600" height="1216" data-path="images/help/afas/afas-9.png" />

### Étape 2 : Ajoutez les GetConnectors de Chift à votre App

Utilisez la fonctionnalité d'import pour ajouter le fichier ci-dessous :

[AFAS\_GetConnectors\_15122025.zip](/images/help/afas/1765813857584-AFAS_GetConnectors_15122025.zip)

(téléchargez-le et importez-le comme illustré dans la capture d'écran ci-dessous)

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-11.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=97d4421e3e9f3ca85c9f6cbe0f907691" alt="image.png" width="1180" height="628" data-path="images/help/afas/afas-11.png" />

1 - Enregistrez le fichier zip en local et extrayez-le dans un dossier.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-12.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=5d00b817c8b654e8834684895657b151" alt="image.png" width="1600" height="789" data-path="images/help/afas/afas-12.png" />

2- Sélectionnez ce dossier depuis votre machine et cliquez sur **Finish**.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-13.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=e8e8b7a5a2ab97509496eb159df87084" alt="image.png" width="1600" height="655" data-path="images/help/afas/afas-13.png" />

Après avoir accepté le message d'avertissement, AFAS importera les GetConnectors. Une fois terminé, sélectionnez **Next** :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-14.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=345d3c861482b16fd78615e01df05513" alt="image.png" width="1600" height="946" data-path="images/help/afas/afas-14.png" />

### Étape 3 : Ajoutez les UpdateConnectors

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-15.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=e32ccbd9a7793667abc580448a866ef3" alt="image.png" width="1090" height="574" data-path="images/help/afas/afas-15.png" />

Utilisez la barre de recherche pour trouver et ajouter les UpdateConnectors suivants :

* Inkooprelatie organisatie - KnPurchaseRelationOrg
* Inkooprelatie persoon - KnPurchaseRealationPer
* Verkoopsrelatie organisatie - KnSalesRelationOrg
* Verkoopsrelatie persoon - KnSalesRelationPer
* Financiële mutaties - FiEntries
* Code verbijzondering - KnDimCode

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-16.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=c952fce8be9afc1ff1b485b3359a6dd3" alt="image.png" width="1600" height="814" data-path="images/help/afas/afas-16.png" />

Cochez les cases pour chaque connecteur, cliquez sur **Finish**, puis cliquez sur **New** pour continuer à ajouter tous les connecteurs.

Une fois tous les UpdateConnectors ajoutés, cliquez sur **Next**.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-17.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=93f5d1d2a48b5e2688fd6125f5d9296c" alt="image.png" width="1570" height="1480" data-path="images/help/afas/afas-17.png" />

Cliquez sur « Finish »

⚠ **Important :** Veillez à sélectionner tous les GetConnectors et UpdateConnectors indiqués dans la documentation. Même si un connecteur semble sans rapport avec votre cas d'usage, l'intégration ne fonctionnera pas si tous les connecteurs ne sont pas activés. ⚠

### Étape 4 : Enregistrez votre token API

**AFAS affichera le token API après la finalisation de la configuration des connecteurs.**\
Conservez-le en sécurité, car vous devrez le renseigner lors de l'activation de la connexion décrite dans la section suivante.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-18.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=cbad045e29f74e03cc9e9d45edbbd6c4" alt="image.png" width="1600" height="1114" data-path="images/help/afas/afas-18.png" />

Cette App Chift nécessite le filtre d'autorisation « Algemeen - Adminstraties ». Vous pouvez le vérifier en accédant à l'outil d'autorisation et en retrouvant le groupe d'autorisation qui a été automatiquement créé lors du processus de l'App Connector, dans la partie gauche de l'écran. Une fois sélectionné, retrouvez les filtres d'autorisation dans l'onglet « Authorisiation » et activez les Administraties (dossiers) pertinents que vous souhaitez utiliser dans le cadre de l'intégration. Dans l'image d'exemple, seule l'Administratie 1 fera partie du périmètre.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-19.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=b394958cdc70ab6031de79d1c14b482f" alt="image.png" width="1600" height="1349" data-path="images/help/afas/afas-19.png" />

# ⚡️ CONNEXION

## ❶ CONNECTER

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-20.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=e51fe5e0a1c027776cf8ffb56cfee1d8" alt="image.png" width="1102" height="1558" data-path="images/help/afas/afas-20.png" />

### 1) Company ID :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-21.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=7bd45153845ecd55baef608e49cf4f9d" alt="image.png" width="1070" height="249" data-path="images/help/afas/afas-21.png" />

***a) Dans l'url :***

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-22.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=a31e62f586d2e9ab90eaa10467101557" alt="image.png" width="806" height="68" data-path="images/help/afas/afas-22.png" />

**b) Dans le coin supérieur droit** de votre écran.

⚠ **Remarque :** Le numéro d'organisation est composé **uniquement de chiffres**. Par exemple, dans ce cas il s'agit de `36480`, et **non** de `O36480AA`.

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-23.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=74bfce15b5d8098e49b41c1051209e4b" alt="image.png" width="506" height="129" data-path="images/help/afas/afas-23.png" />

### 2) Token API :

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-24.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=0ffe02a861526fcee905f4d14eb4b476" alt="image.png" width="1071" height="249" data-path="images/help/afas/afas-24.png" />

Collez le token API que vous avez enregistré lors de la phase de préparation (**Étape 4 : Enregistrez votre token API**).

⚠ **Important :** Assurez-vous de coller le token exactement tel qu'il a été enregistré.

## ❷ Configurer

<img src="https://mintcdn.com/chift/vFP6kbuJx-Hf0o8M/images/help/afas/afas-25.png?fit=max&auto=format&n=vFP6kbuJx-Hf0o8M&q=85&s=8ca4eb787c9d2caccf6371c5d0bdab5a" alt="image.png" width="1098" height="1244" data-path="images/help/afas/afas-25.png" />

**Conditions de paiement par défaut**

Sélectionnez les conditions de paiement par défaut pour la création des **clients** et des **fournisseurs**.

**Administrative ID**

ℹ *Si ce champ n'est pas affiché de l'autre côté, vous pouvez l'ignorer.*

Sélectionnez l'**administrative ID** auquel vous souhaitez vous connecter.\
Cette option est utilisée lorsque vous devez vous connecter à un **administrative ID spécifique** (par exemple, un dossier comptable particulier).

**Plan analytique par défaut**

ℹ *Si ce champ n'est pas affiché de l'autre côté, vous pouvez l'ignorer.*

Sélectionnez l'**axe d'affectation** utilisé par défaut.

Validez ! Félicitations ! 🎉
