- You enable the WeFact API under Instellingen (Settings) > API. That is where you find your key and where you whitelist your server's IP addresses.
- You may make 200 calls per minute and 3,600 per hour per IP address. Go over that and WeFact blocks your IP address with a 403 error (as of November 2026).
- For Shopify, WooCommerce and bol, ready-made integrations from third parties exist. A custom integration via the API only makes sense if you want more than just turning orders into invoices.
If you search for "wefact api", you usually want to know two things: can I connect my webshop, ERP or portal to WeFact myself, and how hard is it? This guide answers both questions. Everything comes from WeFact's own documentation, which we reviewed on 23 November 2026. Where something is not in the documentation, we say so.
What is the WeFact API and what can you do with it?
The WeFact API gives software access to your WeFact administration. Another system can use it to create, update and retrieve customers, invoices, quotes, subscriptions, products, purchase invoices and bank transactions, without anyone retyping anything by hand. WeFact says so itself on its integrations page: connect to your accountant's accounting package or other software, or build your own integration via the API [5].
The API is at https://api.mijnwefact.nl/v2/ [1]. According to the changelog, this endpoint has been in use since version 2.3.6 (26 February 2019). The latest released version is 2.6.5 of 22 January 2026, with improvements for Peppol [4]. The sample code in the documentation is all PHP [1], but any language that can make HTTP requests works too.
For a webshop or wholesaler, it usually comes down to this:
- Automatically turning a paid order into a customer and an invoice.
- Marking invoices as paid as soon as the payment comes in.
- Sending quotes from a B2B portal to WeFact and having them accepted or rejected there.
- Feeding open items and payment status back into your own dashboard or customer portal.
Not quite sure what an API does? Start with What is an API?.
How do you enable the WeFact API and where do you find the API key?
You enable the API in WeFact via the "Instellingen" (Settings) menu, submenu "API". That page shows your security code (the API key), and it is where you switch the API on or off and whitelist IP addresses [1].
Open the API settings
WeFact > Instellingen > API
Enable the API and copy the security code. This key gives full access to your administration, so treat it like a password: keep it in a secrets vault or an environment variable, not in your code or a shared document.
Whitelist your server's IP address
WeFact > Instellingen > API
You can whitelist multiple IP addresses [1]. If you have a test server and a production server, or your integration runs at an external party, add all of those addresses.
Request a free development environment
support.wefact.nl
Do not test in your live administration. Create a new administration in WeFact, for example "Company name development environment", and email helpdesk@wefact.nl with your request and the name of that administration. WeFact then converts it free of charge. A development environment has the same rights as a regular administration and its own API key [3].
Note. Invoice numbers you create in a test run cannot simply be rolled back. So use that development environment. Otherwise you end up with gaps or test invoices in your real number sequence, and your accountant will ask about them.
Which parts of WeFact can you control via the API?
The API is split into "controllers", one per part of WeFact. Each controller has actions such as show, list, add, edit and delete [1]. The invoice controller has the most actions.
| Component | Controller | Typical actions |
|---|---|---|
| Customers | debtor | show, list, add, edit |
| Invoices | invoice | add, credit, markaspaid, sendbyemail |
| Quotes | pricequote | add, sendbyemail, accept, decline |
| Subscriptions | subscription | add, edit, terminate |
| Products | product | show, list, add, edit, delete |
| Suppliers | creditor | show, list, add, edit |
| Purchase invoices | creditinvoice | add, partpayment, markaspaid |
| Bank transactions | transaction | manage and match |
| Tasks, interactions, groups | task, interaction, group | show, list, add, edit |
Invoices let you do more than just create them. There are actions for partial payments (partpayment), marking as paid or unpaid, sending by email, sending reminders and final demands, downloading the PDF, scheduling, pausing the payment process and adding attachments [1]. Since version 2.6.0 (January 2025), bank transactions can be managed via the API. Version 2.6.1 added transaction matching [4].
What does a call to the WeFact API look like?
Every call to the WeFact API includes three things: a controller, an action and the parameters. In WeFact's PHP examples, it looks like this: $api->sendRequest('invoice', 'list', $parameters); [6]. Every response contains a "status" key with the value "success" or "error". Always check that value [7].
Creating an invoice with the add action requires at least a customer (Debtor or DebtorCode) and one invoice line in InvoiceLines. WeFact fills in the customer details itself from that customer. If you pass a ProductCode per line, WeFact takes the description, price and VAT code from the product [8]. An example with made-up codes:
$parameters = [
'DebtorCode' => 'DB10001',
'InvoiceLines' => [
['Number' => 2, 'ProductCode' => 'P0001'],
['Number' => 1, 'Description' => 'Verzendkosten', 'PriceExcl' => 6.95],
],
];
$result = $api->sendRequest('invoice', 'add', $parameters);
if ($result['status'] == 'error') {
// loggen en opnieuw proberen, niet stil negeren
}
To then mark an invoice as paid, use markaspaid with Identifier or InvoiceCode. The invoice then gets status 4 ("Paid"). This does not work for a draft invoice [9]. If you leave the payment date empty, WeFact uses today's date [9].
You retrieve data with list. Without limit, you get 1,000 results by default, starting at offset 0. You can filter on status, invoice date and payment date, among others [6]. For an integration, the filter on modified is the most useful. It retrieves everything changed within a given period [1], so you don't have to request the entire administration every time.
What limits does the WeFact API have?
The WeFact API allows a maximum of 200 calls per minute and 3,600 calls per hour per IP address. Exceed that and your IP address is blocked, returning a 403 error [2]. Failed login attempts are also capped per IP address per day. The documentation does not say how many attempts are allowed [2].
| Limit | Value |
|---|---|
| Calls per minute | 200 per IP address |
| Calls per hour | 3,600 per IP address |
| Failed authentication | daily limit per IP address |
| When exceeded | 403, "currently in firewall" |
Default limit for list | 1,000 results |
As of November 2026, source: developer.wefact.com [2] [6].
Every response includes headers showing your current usage, such as API-RateLimit-Remaining-Minute and API-RateLimit-Remaining-Hour [2]. Read them and slow down before you hit the limit. Calls that return an error, including authentication errors, count towards the limit [7]. An integration with a wrong key that keeps retrying in a loop will therefore quickly block itself.
Our assessment. An average of 60 calls per minute over an hour (3,600 per hour) is plenty for a webshop that creates one customer and one invoice per order. It gets tight during the first sync of a large history, and when several integrations run from the same IP address. Spread such an initial import over time and track per IP address how many calls are left.
Do you need the WeFact API, or is a standard integration enough?
A standard integration is enough if you only want webshop orders as invoices in WeFact. You need a custom integration via the API when more systems are involved, when data has to flow both ways or when you have your own rules for invoices.
Third-party integrations are available for the major webshop platforms. The ones for bol and Shopify are made by Webwinkelfacturen [10] [11]. For WooCommerce there are two providers: Tussendoor and Webwinkelfacturen. The Tussendoor plugin passes every webshop order to WeFact and creates a contact and an invoice there. You enter your WeFact API key in the plugin [12]. These integrations are paid. You don't pay through WeFact, as you become a customer of the provider yourself [10] [12].
WeFact connects Mollie itself, and that integration is free. Your invoices and reminders then get a payment link, and when the customer pays through that link, the invoice is immediately marked as paid in WeFact [13].
| Situation | Standard integration | Custom integration via the API |
|---|---|---|
| Orders from Shopify, WooCommerce or bol as invoices in WeFact | Yes, via Webwinkelfacturen or Tussendoor | Possible, but usually not needed |
| Payment link on the invoice, automatically marked as paid | Yes, WeFact's Mollie integration | Only with a different payment provider |
| Orders from multiple channels and an ERP, with your own invoice rules | Difficult, a separate integration per channel | Yes, one integration with your rules |
| Payment status and outstanding invoices in your own customer portal | Not in the standard integrations described | Yes, with list and the modified filter |
| Having quotes accepted from a B2B portal | No | Yes, controller pricequote |
A custom integration does not replace WeFact's accounting integrations. Those post your records to Exact Online, Twinfield, SnelStart and Visma eAccounting, among others [5]. For how the Exact side works, read Exact Online integration: how the API works.
How do you build an integration between your webshop and WeFact?
A reliable integration has four parts: finding or creating customers, creating invoices, reporting payments back and tracking changes. You build them in that order.
- Look up or create the customer. First check whether the customer already exists, for example by email address or customer code, and otherwise create them with
debtor/add. A company name or surname is required [14]. Store theDebtorCodein your webshop, so the next order uses the same customer and no duplicate customers are created. - Create the invoice. Use
invoice/add, ideally with aProductCodeper line. That way price and VAT code come from WeFact, not from your webshop [8]. Put the webshop order number in a reference field, so that after an error you can check what has already been processed. - Report the payment back. If the customer pays in the webshop, mark the invoice as paid with
markaspaid[9]. If they pay afterwards via a payment link or bank transfer, let WeFact handle it itself via Mollie [13] or the bank integration. - Fetch changes. We find no webhooks in the documentation or the changelog (as of November 2026). To know what has changed in WeFact, request
listat fixed intervals with themodifiedfilter [1].
The general approach for such a project, from mapping your processes to maintenance after go-live, is in Having an API integration built.
Where do WeFact API integrations go wrong?
A WeFact API integration rarely goes wrong in the first week. The problems come later: with a second channel, a return or a server move. These five are the ones we see most.
- Duplicate invoices after a timeout. Your integration retries while the first call actually succeeded. First check by order number whether the invoice already exists, and only then create it.
- A blocked IP address. A wrong key after a change, plus an integration that keeps retrying, quickly results in a 403, because failed calls count too [7]. Stop immediately on an authentication error and send an alert.
- A new IP address that is not on the whitelist. If your integration moves to another server or hosting provider, add the new address to the whitelist beforehand [1].
- Credit notes that do not match. A return in the webshop must become a credit invoice in WeFact (action
credit), not a deleted or modified invoice [1]. Agree on who makes that decision: the webshop or the finance department. - Invoice data from two sources. If the webshop sends prices and VAT while WeFact also takes them from the product, sooner or later they will differ. Choose one source.
Include it. Since version 2.6.5 the API supports Peppol: it is a sending method (code 5) and customers and invoices have a Peppol address [4] [15]. If you sell to businesses that want to receive e-invoices via Peppol, include that field in your integration right away. Adding it later is more work.
What does a WeFact integration cost?
There are three kinds of costs: your WeFact subscription, any modules and the integration itself. WeFact starts at €6.50 per month [16]. An accounting integration costs €5 per month and a bank integration €5 per bank account per month [16]. The pricing page does not list the API as a separate paid module. It does not say which subscriptions include API access. Check this with WeFact before you start (as of November 2026).
A standard integration from Webwinkelfacturen or Tussendoor is paid to that party. WeFact lists no amounts on its own pages [10] [12]. For the Mollie integration you pay nothing to WeFact, but you do pay transaction fees to Mollie, for example €0.32 per iDEAL payment [13]. To integrate the Mollie side yourself, read The Mollie API.
If you have a custom integration built, the price depends on the number of systems and the rules it needs to handle. SolidDeploy builds such integrations as a dedicated tech team for e-commerce, retail and wholesale. The Start package costs €1,495 per month and Partner from €1,950 per month. After a free consultation the team starts within 2 weeks, and the first system is running within 30 days. See pricing.
Frequently asked questions
Is the WeFact API free to use?
WeFact's pricing page does not list the API as a paid module, and the API documentation mentions no costs (as of November 2026). The quickest way to find out whether your subscription includes API access is to ask WeFact. The development environment for testing is free [3].
Does WeFact have webhooks?
We find no webhooks in WeFact's API documentation or changelog (as of November 2026). You fetch changes by regularly making a list call with the modified filter, which works with many list functions [1].
How many requests can you make to the WeFact API?
200 calls per minute and 3,600 calls per hour per IP address. If you exceed that, WeFact blocks your IP address and you get a 403 error [2]. Failed calls count too [7].
Can I connect WeFact to bol.com?
Yes. Webwinkelfacturen offers an integration between bol and WeFact. You pay the costs to Webwinkelfacturen, not to WeFact [10]. To fetch and process bol orders yourself, read how the Bol Retailer API works.
Can I send invoices via Peppol through the WeFact API?
Yes. Since version 2.6.5 of January 2026, Peppol is a sending method in the API (code 5). Customers and invoices have a Peppol address for this [4] [15].
What would this do for you?
Describe in the Idea scan what you want to improve. You get a few targeted questions, your idea is then laid out clearly and we prepare a free consultation.
Sources
- WeFact, "WeFact API: Inleiding", developer.wefact.com, accessed 23 November 2026
- WeFact, "Limieten", developer.wefact.com, accessed 23 November 2026
- WeFact, "Gratis ontwikkelomgeving", support.wefact.nl, accessed 23 November 2026
- WeFact, "Changelog" (up to version 2.6.5, 22 January 2026), developer.wefact.com, accessed 23 November 2026
- WeFact, "Integraties", wefact.nl, accessed 23 November 2026
- WeFact, "Factuur: list", developer.wefact.com, accessed 23 November 2026
- WeFact, "Foutafhandeling", developer.wefact.com, accessed 23 November 2026
- WeFact, "Factuur: add", developer.wefact.com, accessed 23 November 2026
- WeFact, "Factuur: markaspaid", developer.wefact.com, accessed 23 November 2026
- WeFact, "Bol.com koppeling", wefact.nl, accessed 23 November 2026
- WeFact, "Shopify koppeling", wefact.nl, accessed 23 November 2026
- WeFact, "WooCommerce koppeling", wefact.nl, accessed 23 November 2026
- WeFact, "Mollie koppeling", wefact.nl, accessed 23 November 2026
- WeFact, "Klant: add", developer.wefact.com, accessed 23 November 2026
- WeFact, "Variabelenlijst", developer.wefact.com, accessed 23 November 2026
- WeFact, "Prijzen", wefact.nl, accessed 23 November 2026
- Getting an API integration built · the approach from start to ongoing management
- The Mollie API · linking payments to your own systems
- Exact Online integration · if your accounting runs in Exact
- Lightspeed API: how to connect your systems



