Integration

Magento 2 AFAS integration

Your shop shows products, stock and B2B prices from AFAS Profit, and an order goes back as a sales order, credit invoice or journal entry.

11 flows available
From €35.98 per month
Set up yourself or let us do it
Magento 2
Magento 2
AFAS
AFAS
B2B pricesCustomersProduct relationsProductsRefundsSales ordersShipmentsStock
Flows

What can you connect between Magento 2 and AFAS?

We group the data that can be exchanged into flows. Add one flow or combine several; you pay per flow per month.

B2B prices

€59.98per month

Tiered prices and discount groups from AFAS come into the shop as B2B prices on a product the shop already knows. If that product is missing, the integration creates nothing.

  • Only prices that changed since the previous run
  • The base rate is the base, the rest is relative
  • A quantity of zero or empty becomes one
  • Every price list belongs to a customer group
Magento 2AFAS€59.98per month
Try now for free

Customers

€59.98per month

Debtors from AFAS become customers in the shop, and shop customers become debtors in AFAS. You only change an existing customer if you switch that option on.

  • Matched on debtor number first, then on email
  • Existing addresses in Magento stay unchanged
  • A company becomes an organisation, otherwise a person
  • You can send contact persons along
Magento 2AFAS€59.98per month
Magento 2AFAS€59.98per month
Try now for free

Product relations

€59.98per month

Related products, upsell and cross-sell from AFAS become links between products in Magento 2. An existing link of the same type stays in place.

  • Products without relations are skipped
  • The linked products must already exist
  • Free fields in AFAS hold the product codes
  • A link is never removed
Magento 2AFAS€59.98per month
Try now for free

Products

€44.98per month

Products from AFAS become products in the shop, with price, stock, images and categories. From Magento only simple products go back as an item.

  • A variant becomes its own product under the parent
  • Updating an existing item is something you switch on yourself
  • Composite products from the shop are left behind
  • Item group, unit and VAT must exist in AFAS
Magento 2AFAS€44.98per month
Magento 2AFAS€59.98per month
Try now for free

Refunds

€35.98per month

A credit note from Magento 2 becomes a credit invoice or a financial transaction in AFAS. The debtor must already exist, otherwise the flow stops.

  • Quantities on the credit invoice become negative
  • Every credit note needs a warehouse, every line a unit
  • Nothing is written back to Magento
Magento 2AFAS€35.98per month
Try now for free

Sales orders

€58.98per month

An order from the shop lands in AFAS in the form you choose. A sales order from AFAS becomes an unprocessed order in Magento.

  • A known order number is not created again
  • Every line refers to a product that already exists
  • If a product is missing from the shop, the order stops
  • Shipping costs get their own order line
Magento 2AFAS€58.98per month
Magento 2AFAS€58.98per month
Try now for free

Shipments

€59.98per month

A packing slip or a changed sales order from AFAS becomes a shipment on an existing Magento order. Track-and-trace comes along as soon as it is filled in in AFAS.

  • The order number must be the same in both systems
  • Without a carrier the shipment fails
  • A line that is not on the order is dropped
  • Every shipment is processed only once
Magento 2AFAS€59.98per month
Try now for free

Stock

€57.98per month

Stock changes from AFAS set the quantity on the product in Magento 2. Only the first stock line counts, and a missing product is not created.

  • You choose which stock figure is used
  • A stock count in AFAS does not count as a change
  • Reset the start date to send everything again
  • The product is looked up by item code
Magento 2AFAS€57.98per month
Try now for free

Your webshop runs on Magento 2, while products, tiered prices and warehouse stock are kept in AFAS Profit. Without an integration, someone re-enters every new debtor, every price change and every shipment, and the shop sells quantities the warehouse has already sold. A paid order still has to be entered as a sales order in the ERP. That double entry is the work this removes.

From AFAS to the shop go customers, products with variants, B2B prices, product relations, stock, sales orders and shipments with track-and-trace. From the shop back to AFAS go shop customers, simple products, sales orders and credit notes. Payments are read from AFAS, but nothing from them is written to Magento 2. You set per flow what goes across and whether an existing record may be updated.

A sales order from the shop can arrive in AFAS as an order, quotation, pre-calculation, invoice, financial transaction or forecast. You take shipments from packing slips or from changed sales orders. Existing addresses in the shop stay as they are; a new address is added. The pull flows run automatically, at an interval you choose per flow, and pick up changes since the previous run.

In practice

What this integration solves

1

Tiered price for wholesale

A buyer orders in the shop with their own customer group. The tiers and the discount group are set up in AFAS and come onto the product in Magento 2, so the price on the product page is right without anyone retyping the rates. You set the product up correctly once.

2

Order to the ERP

A customer completes an order in Magento 2. The sales order arrives in AFAS, with debtor and delivery address. If the address already exists, it is reused. You choose whether AFAS creates an order, an invoice or a quotation, and a duplicate order number makes the integration skip it.

3

Warehouse updates the shop

After a delivery, stock changes in AFAS. At the next run that quantity is set on the product in the webshop, so the shop does not sell more than the warehouse has. A correction after a stock count does not count as a change: reset the start date if you want to send all stock again.

How do you set up the Magento 2 AFAS integration?

  1. 1Create a free APIcenter account.
  2. 2Add Magento 2 and AFAS in the wizard and authorise both.
  3. 3Choose the flows you need and check the settings.
  4. 4Test with a few records in the activity log and switch the integration on.

Set it up yourself

Create a free account, start the wizard and follow the manuals per application.

  • Access to the APIcenter dashboard
  • Manuals and videos per application
  • Choose the data you want to synchronise
from €1,995.00

Installation package

Our onboarding team sets up your integration and makes sure the basics work perfectly.

  • Installation by APIcenter experts
  • Authorisation of both applications
  • Configuration of your first flow
  • Video call to walk you through it

Frequently asked questions

What goes from Magento 2 to AFAS and back?

To the shop go customers, products, B2B prices, product relations, stock, sales orders and shipments. Back to AFAS go customers, simple products, sales orders and credit notes. A credit note becomes a credit invoice or a financial transaction. Payments are read from AFAS, but nothing from them is written to Magento 2.

What if the product or the debtor does not exist yet?

Prices, stock and product relations only update a product the shop already has. If it is not there, the shop stays empty for that item. A sales order in the shop stops if a product is missing from the line. For a credit note, the debtor must already exist in AFAS, otherwise that flow stops. You can have a new customer or a new product created automatically.

How often does the integration run, and what is included?

Every pull flow runs automatically, at a rhythm you choose per flow. Included are the records changed since the last run, in batches you set yourself. Sales orders from AFAS are picked up from a creation date you set. A stock correction after a count does not count as a change: reset the start date if you want to send all stock again.

How does the integration recognise an existing record?

A customer is looked up on debtor number and then on email. You only update when that option is on; the name has its own option. An address that already exists in Magento 2 is not overwritten. Products and stock are matched on item code. A sales order with the same order number or reference is not created again in AFAS.

What should I watch out for beforehand?

You work in AFAS Online, with order management and finance. Set up items, item groups, units and VAT correctly once, because an order line without an item in AFAS gives an error. Shipping costs are booked as a separate order line, as the order itself has no field for them. Only simple products go across from the shop; composite products are left behind.

Connect Magento 2 and AFAS today

Create a free account and set up your integration with the wizard, or order the installation package in your dashboard.