
B2B Wholesale Portal with ERP Integration: A GCC Guide
A B2B wholesale portal with ERP integration is only as good as that integration. Buyers expect to see their own contract prices, real stock, their open balance and every invoice, and your finance team expects every order to land in SAP Business One, Odoo or Microsoft Dynamics without retyping. This guide is for distributors and manufacturers in Saudi Arabia, the UAE and the wider GCC that already run an ERP and want an ordering portal on top of it. It covers what to sync and in which direction, how VAT and e-invoicing shape the design, direct API versus middleware, and a phased rollout.
What a B2B wholesale portal with ERP integration must do
Start with one rule: the ERP stays the system of record for anything with financial or legal weight, and the portal is a sales channel on top of it. Customers, prices, credit, stock, invoices and tax belong to the ERP; the buyer experience belongs to the portal. Most integration disputes start when this split is left implicit, so write it down first. If you are still defining the platform itself, start with our guide to B2B wholesale ordering for distributors; this article focuses on the ERP side.
Data the ERP owns
Customer master and delivery addresses, price lists and special prices, credit limits and payment terms, the item master and units of measure, stock by warehouse, sales orders once accepted, delivery notes, tax invoices, credit notes and payments. The portal reads these and writes back only orders, and perhaps return requests or new-customer applications, through agreed endpoints.
Data the portal owns
Buyer accounts (one customer usually has several buyers with different rights), carts and saved order templates, approval workflows inside the customer's company, product content and images, and the audit trail of who ordered what. None of this belongs in the ERP.
One identifier per object
Agree how each object is matched across systems: the ERP customer code, item code and warehouse code, plus the portal's own order reference stored on the ERP sales order. This shared key is what makes retries safe and reconciliation possible.
Customer-specific price lists and credit limits
Pricing is where a portal loses trust fastest: a buyer who sees one price online and another on the invoice goes back to calling the rep. Each ERP models B2B pricing differently, and the portal has to reproduce exactly the same result, not an approximation.
SAP Business One
Price determination follows a fixed order: a business-partner special price first (which can depend on date or quantity), then discount groups, then an item's special price in the partner's price list, and finally the price list itself, according to SAP's help on special prices. A portal that reads only price lists will be wrong for exactly the customers who matter most.
Odoo
Each customer has a pricelist set on the Sales & Purchase tab of their contact, and rules apply by product or category with a minimum quantity, a validity period, a discount or a formula, as Odoo's pricing documentation describes. Formula-based discounts are not shown to the customer, which matters if your portal displays a 'your discount' figure.
Microsoft Dynamics 365 Business Central
The standard customer API resource exposes creditLimit, balanceDue, paymentTermsId, a blocked status and the tax registration number, which covers the credit side. If you need fields the standard API does not return, Microsoft's documentation says extending standard APIs isn't currently possible; you copy the API code and build a custom one.
Replicate the rules, or ask the ERP?
Replicating pricing rules in the portal keeps browsing fast but means re-implementing the ERP's logic. Asking the ERP to price the cart guarantees the same answer but adds latency and load. The usual compromise: cache resolved prices per customer for browsing, then re-price the cart against the ERP at checkout and show any difference before the buyer confirms.
Credit limits and blocked accounts
Show each buyer the credit limit, open balance and available credit, and agree with finance what happens when an order exceeds it: block, accept as 'pending approval', or let the ERP's credit check hold it. Available credit must include orders not yet invoiced; otherwise two buyers from the same customer can each place an order that fits on its own but not together.
Stock, orders and invoices: the document flow
Once prices are right, the integration is mostly about moving documents in the right order, exactly once.
Stock availability
Decide which warehouses each customer buys from and what you show: exact quantity, 'available / limited / out of stock', or a lead time. Exact numbers invite disputes when stock moves between sync runs; ranges plus a re-check at checkout are safer.
Orders into the ERP
The portal order becomes an ERP sales order. In SAP Business One's Service Layer this is an Orders entity with DocumentLines, created over HTTP like any other business object, according to SAP's Service Layer guide. Store the portal's order number on the ERP document and check for it before creating one, so a timeout followed by a retry never produces a duplicate order.
Status coming back
Buyers want to see confirmed, delivered, invoiced and paid. Polling works but scales poorly; events are better where available. SAP's guide says the Service Layer supports webhooks as of SAP Business One 10.0 FP 2602, and Business Central online allows up to 200 webhook subscriptions per environment, according to Microsoft's operational limits.
Invoices, statements and payments
Tax invoices, credit notes and statements should be issued by the ERP or its e-invoicing solution and only displayed or downloaded in the portal. Online payments are posted back to the ERP against the right invoices, so the balance buyers see matches the ledger, and returns follow the same rule: requested in the portal, created in the ERP after approval.
VAT and e-invoicing in Saudi Arabia and the UAE
In the GCC, tax rules are a strong argument for keeping invoicing in the ERP. The portal should show VAT-inclusive totals that match the invoice to the last halala or fils, without becoming a second invoicing system.
Saudi Arabia
VAT has been 15% since 1 July 2020, according to ZATCA. E-invoicing began with the generation phase on 4 December 2021, and the integration phase, which connects invoicing solutions to ZATCA's systems, has been rolled out in waves since 1 January 2023 (ZATCA e-invoicing). If your ERP or its add-on already handles this, invoices created from portal orders inherit compliance automatically.
United Arab Emirates
VAT was introduced on 1 January 2018 at a standard rate of 5%, according to the UAE Ministry of Finance. The Ministry has also announced a Peppol-based e-invoicing system for B2B and B2G transactions, run through Accredited Service Providers, mandatory from 1 January 2027 for businesses with annual revenue of AED 50 million or more and from 1 July 2027 for smaller ones (Ministry announcement). Check the Ministry's e-invoicing page for the deadlines in force before you plan.
What this means for the portal
Decide whether customers see prices before or after VAT, and keep rounding identical to the ERP. Store the buyer's VAT number in the ERP customer master, not only in the portal. Let the ERP produce compliant invoices and credit notes, and let the portal display them; when e-invoicing rules change, you update one system.
Integration architecture: direct API or middleware?
Every major ERP now has a documented API, but they behave differently under load, and that drives the architecture more than vendor preference does.
What the main ERP APIs look like
SAP Business One's Service Layer is an HTTP and OData service (versions 3 and 4) that starts with a login and a session cookie. Odoo 19's external JSON-2 API uses a bearer API key, runs each call in its own transaction and, per Odoo's documentation, is available only on Custom pricing plans; the older XML-RPC and JSON-RPC APIs are scheduled for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027). Business Central's API is limited to 6,000 OData requests per user in a five-minute window and 20,000 entities per page. Dynamics 365 Finance and Operations exposes public data entities over OData, with pages of up to 10,000 records, according to Microsoft.
Direct, point-to-point
The portal back end calls the ERP API directly. This suits one ERP company, a few thousand SKUs, moderate volume and an ERP reachable from the portal's hosting. It is the cheapest to build, but every ERP outage or slowdown is felt by buyers immediately.
An integration layer with a queue
A separate service sits between the portal and the ERP: it caches the catalogue, prices and stock, queues orders, retries failed calls, maps codes and logs every message. Choose it for several ERP companies or countries, an on-premise ERP behind a firewall, month-end or promotion peaks, or more systems to connect later, such as a WMS. It can be your own service or an integration platform you already license.
The hybrid most portals end up with
Reads (catalogue, prices, stock, balances) come from a local copy refreshed on a schedule or by events; writes (orders, payments, returns) go through a queue to the ERP and confirm back. Buyers keep ordering while the ERP is down for maintenance, and an order shows as 'received' until the ERP accepts it.
Things to agree early
A sandbox with realistic data, a dedicated least-privilege integration user, how errors reach the business, and who owns the code-mapping tables.
A phased rollout that does not disrupt sales
Integrations fail when everything goes live at once. Each phase below delivers something buyers or the sales team can use, and each builds on the one before.
Phase 0: the integration contract
List every object, field, direction, frequency and owner; clean up customer and item codes; pick ten real customers with awkward pricing as your test cases.
Phase 1: a read-only portal
Catalogue, customer prices, stock, open balance, invoices and statements. Low risk, and it exposes pricing mismatches before money depends on them.
Phase 2: ordering
Cart, re-pricing at checkout, credit check, order creation in the ERP with duplicate protection, and status updates. Start with a pilot group of customers and their reps.
Phase 3: payments, returns and events
Online payments posted to the ERP, return requests, and webhooks or event feeds instead of polling.
Phase 4: scale
More countries or ERP companies, sales-rep and van-sales apps, and analytics. Our guide to connecting an online store to inventory and POS covers the stock side in more detail.
Planning a B2B portal on top of your ERP?
N.I.T Egypt has built ecommerce platforms and business apps for clients in Egypt and the Gulf since 2013. If you are scoping a wholesale portal, send us five facts: your ERP and version, whether it is cloud or on-premise, the number of active customers and SKUs, how many price lists and special prices you maintain, and the countries where you invoice. We will come back with an integration approach and a phased plan. Start with get a quote, contact us, or see our ecommerce and app development services.
Frequently asked questions
Do we need to change or upgrade our ERP first?
Usually not, but check the version. Some API capabilities depend on it: Service Layer webhooks need SAP Business One 10.0 FP 2602 or later, and Odoo's external API requires a Custom plan. The gap analysis in phase 0 answers this.
Does the sync have to be real-time?
Not everything. Orders and credit checks need near real-time responses; catalogue and price lists can refresh on a schedule or on change. Making everything real-time mostly adds load and API throttling.
Can the portal issue ZATCA- or UAE-compliant invoices itself?
It can be built, but we rarely recommend it. Keeping tax invoices in the ERP or its e-invoicing solution means one system to keep compliant, while the portal displays the documents.
Our ERP is on-premise. Is that a problem?
No, but the portal must reach it securely, typically through an integration service inside your network that connects outwards to push and pull data, or through a VPN. Do not expose the ERP API directly to the internet.
What if we run more than one ERP?
Then an integration layer is close to mandatory: it maps each ERP's codes to one catalogue and routes each order to the right company.
Need a Moodle platform or eCommerce app?
We'll send you a detailed proposal within 24 hours