E-commerce and rules 3 min read Updated
Custom B2B dealer and client ordering portals
In short
B2B ordering portals fail when built on B2C store templates: customer-specific price matrices, spending approvals, invoice payment terms and multi-buyer isolation belong in the core data model from day one.
Wholesale distributors and manufacturers often try to bolt dealer ordering onto a retail e-shop using discount coupon plugins and shared spreadsheets. Within months, contract price exceptions, multi-branch buyers, invoice credit limits and manual order re-entry overwhelm support teams. A dedicated B2B client portal replaces phone and PDF orders with self-service workflows built around company accounts, contract pricing and ERP synchronisation.
How B2B ordering differs from a retail storefront
Treating a dealer account like an ordinary retail customer breaks down across pricing, permissions and payment settlement.
| Workflow requirement | Retail B2C storefront | B2B client and dealer portal |
|---|---|---|
| Account structure | One email equals one shopper | Company account with multiple buyers, branches and roles |
| Pricing model | Public price and promo codes | Contract tiers, SKU overrides, volume breaks and MOQs |
| Checkout and payment | Immediate card or wallet capture | Purchase order numbers, approval gates and invoice credit terms |
| Order entry speed | Visual browsing and product stories | SKU quick-order grids, CSV upload and one-click repeat orders |
Tenant isolation and server-side contract pricing
In a dealer portal, one distributor must never view another distributor’s negotiated prices, invoice history or delivery addresses. Following the OWASP Authorization Cheat Sheet, derive the active company tenant strictly from the authenticated server session and enforce object-level ownership checks on every catalogue, cart, order and PDF invoice endpoint.
Apply the same rule to pricing calculations (B2B SaaS architecture basics). Resolve base list price, customer group discount, SKU exception and minimum order quantity entirely on the server before rendering totals or accepting submission, and lock the resolved unit prices onto the order snapshot so subsequent price-list edits never rewrite historical invoices.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Approval rules, credit limits and quick ordering
Corporate buyers rarely want open purchasing without guardrails. A practical B2B portal separates cart drafting from final release using role permissions (such as Buyer versus Approver) and configurable thresholds per branch or monthly budget.
Before letting an order enter fulfilment, check remaining credit headroom against overdue ERP receivables. If an account exceeds its credit limit, allow the buyer to submit the order into an internal review queue or pay the balance online rather than failing silently. For repeat restocking, invest in keyboard-friendly SKU matrix entry, saved order templates and CSV paste rather than decorative merchandising banners.
Synchronising price lists, stock and invoices with ERP
Your accounting or ERP system, whether Pohoda XML, ABRA Flexi or a larger warehouse suite, remains the source of truth for issued invoices, credit exposure and physical stock. Follow the queued integration patterns in ERP API integration so approved portal orders flow into the ERP asynchronously without blocking the user interface.
Attach a unique idempotency key to every order submission and ERP push so double clicks or mobile network drops never spawn duplicate wholesale shipments. Once the ERP generates an invoice or dispatch tracking number, sync the PDF reference and shipment status back into the portal so dealers download documents themselves instead of emailing accounting.
Launch checklist for a B2B ordering portal
- Map all company-level entities, branch delivery addresses and buyer approval roles before designing screens.
- Test cross-tenant authorisation on every API route, including invoice PDF downloads and quick-reorder endpoints.
- Verify contract price resolution, VAT reverse-charge rules and minimum order quantities against real ERP test accounts.
- Add CSV import and one-click reorder from past invoices for top wholesale buyers during pilot testing.
Authorisation rules, VAT treatment on cross-border B2B deliveries and ERP field schemas depend on your tax jurisdiction and accounting software. Validate tax flags and credit-hold rules with your finance team before opening self-service ordering to dealers.
Common questions
- Why do standard B2C e-shop platforms struggle with B2B dealer ordering?
- B2C templates assume public catalogue prices, single-person carts and upfront card checkout, whereas B2B buyers need contract-specific pricing tiers, multiple users under one company account, purchase approvals and credit-limit invoicing.
- How should customer-specific price lists be protected in a B2B portal?
- Compute all contract prices, volume discounts and tax rules on the server from the authenticated session tenant rather than trusting client-side price fields or URL parameters.
- How do you keep B2B portal orders aligned with an internal ERP?
- Sync customer credit limits, contract price lists and stock balances on scheduled or event-driven intervals, and push approved B2B orders asynchronously with idempotent external order references.
Sources
- Authorization Cheat Sheet, OWASP Foundation. Accessed 24 November 2026
- Idempotent requests, Stripe Docs. Accessed 24 November 2026
- POHODA XML komunikace, STORMWARE. Accessed 24 November 2026
Further reading
-
Integrating Pohoda, ABRA Flexi and ERP via API
Connecting an online shop or marketplace to Pohoda or ABRA Flexi reliably depends on queue isolation, idempotent order keys and explicit stock reservation rules rather than live checkout calls.
-
SaaS architecture for small B2B teams
A small B2B SaaS rarely needs microservices, but it cannot cut corners on tenant isolation, server-side roles, idempotent billing state and clean onboarding.
-
API authentication: cookies, JWT or API keys?
Most web apps need stateful HttpOnly session cookies for browsers and hashed, scoped API keys for server-to-server integrations. Choose stateless JWTs only when multiple independent services must verify identity without calling a central store.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea