Functional description
Beheer > Integraties > AFAS

In the AFAS integration, the invoice document and the payment booking are two separate flows, each with its own trigger and connector. An environment can therefore create a real sales invoice and book the iDEAL down-payment as a financial entry — the two do not conflict.

1. Invoice modes

The invoice mode determines which UpdateConnector is used and what appears in AFAS:

Invoice modeUpdateConnectorResult in AFAS
Financial entry incl. VAT (default)FiEntriesJournal entry (debit/credit lines); AFAS calculates the VAT.
Financial entry excl. VATFiEntriesSame journal entry, lines based on amounts excl. VAT.
Sales invoiceKnSalesInvoice or FiInvoiceA real sales invoice document.
Direct invoiceFbDirectInvoiceNative sales invoice with article lines.
Direct mutationsFBDirectMutationsFinancial entry with manual VAT control.

2. Missing connectors are not blockers

During onboarding, AFAS administrators sometimes report that KnSalesInvoice or FBDirectMutations does not exist in their environment. That is not a problem — the connectors per mode are alternatives, not a combined hard requirement:

  • KnSalesInvoice missing → use FiInvoice as the invoice connector within the same sales-invoice mode. The integration then automatically switches the line object (from KnSalesInvoiceLine to FiInvoiceLine).
  • FBDirectMutations missing → not needed; the default route for financial entries is FiEntries, with the same bookkeeping result (AFAS calculates the VAT).

3. Which mode should you choose?

Goal in AFASModeRequired connector(s)
Only financial bookings (no invoice document)Financial entryFiEntries
A real sales invoice documentSales invoice (with FiInvoice)FiInvoice + FiEntries (payments)

In both cases, the debtor connector is also required, plus read rights on VAT codes, ledger accounts, cost centres and journals — see Setting up AFAS Profit.

4. Payment booking (down-payments)

As soon as a payment (iDEAL, credit card, bank) reaches the status paid, the integration books it as a two-line journal entry through FiEntries: bank (debit) against debtor (credit). This always goes through FiEntries, regardless of the chosen invoice mode. If the payment came in before the invoice was finalised, it is booked retroactively.

The debtor line carries the invoice number, so AFAS auto-matches the payment against the open item. The rest of the debtor follow-up (open balance, dunning) then continues in AFAS itself.

Note: the payment booking requires both the payment journal (journal code) and the bank/clearing account (ledger account) to be set in the integration. If either is missing, the booking is silently skipped — the down-payment will never reach AFAS.

5. External invoice number (optional)

By default, i-Reserve assigns the invoice number. Optionally the integration can push the invoice to AFAS first and use the number assigned by AFAS as the invoice number in i-Reserve. This only works in the sales invoice and direct invoice modes — a financial entry has no invoice document.