Instruction
Beheer > Integraties > AFAS

The AFAS Profit integration pushes debtors and sales invoices from i-Reserve to an AFAS administration through the AFAS REST API. Unlike Exact Online and Moneybird, AFAS does not use OAuth2 but an app connector with a token. The integration can also book payments (such as iDEAL down-payments) as financial entries and optionally pull debtor changes back from AFAS. See AFAS invoicing and AFAS customer synchronisation for those parts.

The AFAS integration at a glance i-Reserve Booking, customer & invoice Source of the invoice AFAS Profit Debtor, entry & invoice Bookkeeping 1. Invoice finalised → debtor + entry/invoice 2. Payment paid → journal entry, auto-matched App connector + token (REST API) 3. Optional: changed debtors pulled back (poll) Direction configurable per field: i-Reserve leading or AFAS leading

1. On the AFAS side (one-off)

  1. Create an app connector under General → Management → App connector and generate a token in it.
  2. Link the app connector to a user group / authorisation role with the rights from step 4.
  3. Add all required Get and Update connectors (steps 2 and 3) to the app connector's list. Note: a connector that is not explicitly added to the app connector returns a 403 error, even when the user group allows it.
  4. Note the environment number (membership number) and which environment you use: production (https://<environment>.rest.afas.online/…) or test (https://<environment>.resttest.afas.online/…).

2. Required GetConnectors (read: AFAS → i-Reserve)

The default names below can be changed per licence; if your AFAS setup uses different connector names, enter those in the integration.

PurposeDefault connector nameRequired
DebtorsProfit_DebtorYes
InvoicesProfit_Debtor_InvoicesYes
ContactsProfit_ContactsYes
Ledger accountsProfit_AccountsYes
Cost centresProfit_CostCentreYes
VAT codesProfit_VAT_CodeYes
JournalsProfit_JournalsYes
ArticlesProfit_ArticleOptional

Each GetConnector must exist in the AFAS administration, be added to the app connector, and expose the fields the field mapping expects (debtor number, contact and address fields, IBAN/BIC, VAT code, payment condition).

3. Required UpdateConnectors (write: i-Reserve → AFAS)

PurposeConnectorRequired
Create/update debtorKnSalesRelationOrg (default) or KnOrganisationYes
InvoiceDepends on the invoice mode — see AFAS invoicingYes (one mode)
Payment bookingFiEntriesYes, always

FiEntries is the universal baseline: it is the default invoice mode and is always used for the payment booking, regardless of the chosen invoice mode.

4. Authorisation (AFAS user group)

  • Debtors: view and update (and in a test environment also delete, so test data can be cleaned up).
  • Read rights on VAT codes, cost centres/project codes, ledger accounts and journals.
  • Financial entries and sales invoices: create and change.
  • Contacts: read and write — debtor writes nest contact and address objects.

5. Prerequisites in the AFAS administration

  • An open financial year/period that accepts entries and invoices.
  • A sales journal (for invoice documents) and a memorial/financial journal (for entries).
  • Valid VAT codes, ledger accounts and cost centres — the same codes used in the mapping on the i-Reserve side.
  • At least one payment condition if it is sent along in the debtor data.

6. On the i-Reserve side

  1. Open Management → Integrations → AFAS and enter the environment number and the token.
  2. Check the connector names; the defaults match the tables above.
  3. Choose the invoice mode (see AFAS invoicing).
  4. Fill the mapping: link i-Reserve VAT rates to AFAS VAT codes, ledger accounts and cost centres. The integration can look up the available values directly from AFAS.
  5. In the Parameters, configure the field mapping and synchronisation direction per customer field (see AFAS customer synchronisation).
  6. Set the integration to active.

7. Checklist

  • ☐ App connector created, token generated and noted.
  • ☐ All GetConnectors (step 2) exist and are added to the app connector.
  • ☐ UpdateConnectors (step 3) added: debtor connector, invoice connector, FiEntries.
  • ☐ User group carries the rights from step 4.
  • ☐ Open period, sales journal and memorial journal present; VAT codes/ledgers/cost centres match the mapping.
  • ☐ Environment number + correct environment (rest/resttest) entered in i-Reserve.
  • ☐ Invoice mode chosen; mapping and parameters filled; integration active.
  • ☐ Test invoice finalised and verified in AFAS (debtor + booking/invoice + VAT correct).