Wholesale buyers do not shop like consumers. A retail buyer clicks a pair of sneakers, pays $120 by card, and closes the tab. A wholesale procurement manager logs into a shared company account, checks whether they still have $18,000 left on their Net-30 credit line, uploads a 60-line CSV of SKU quantities in multiples of case packs, routes the draft to a finance approver, and expects one consolidated invoice—even when those 60 lines come from four different suppliers.
Whenever I review struggling B2B portals across our 170+ shipped case studies, the root problem is almost always the same: someone started with a B2C multi-vendor theme and tried to bolt wholesale rules onto it with plugins. Building a reliable B2B wholesale marketplace starts with modeling organizations, contract pricing, and multi-vendor settlement properly in the core schema.
How B2B Marketplaces Differ from Retail Carts
Before writing code, align your data model around five non-negotiable B2B workflows:
- Company accounts over solo users: Multiple buyers, branch managers, and AP approvers belong to one legal entity (
organizations), with role-based spend limits and approval workflows. - Account-specific pricing: Price is not a column on
products—it is a function of(sku_id, buyer_org_id, quantity, currency). - Order-level constraints: Minimum Order Quantities (MOQ), Minimum Order Values (MOV) per vendor, and case-pack increments (
quantity % pack_size === 0). - Asynchronous payment rails: Purchase Orders (POs), Net-30/60 terms, ACH debit, and wire transfers alongside corporate cards.
- Multi-vendor split fulfillment: One buyer checkout splits into independent vendor sub-orders, each with its own shipping SLA, commission rate, and payout schedule.
Data Modeling: Organizations, Price Lists, and MOQ Rules
A flexible wholesale pricing engine resolves a buyer's unit price deterministically without bogging down catalog search pages. Store base prices on the SKU, then layer named price_lists (for tiers like Gold Distributor or Regional Dealer) and optional customer-specific contract_prices.
CREATE TABLE price_list_items (
price_list_id BIGINT UNSIGNED NOT NULL,
sku_id BIGINT UNSIGNED NOT NULL,
min_qty INT UNSIGNED NOT NULL DEFAULT 1,
unit_price_minor INT UNSIGNED NOT NULL,
currency CHAR(3) NOT NULL,
PRIMARY KEY (price_list_id, sku_id, min_qty, currency)
);
CREATE TABLE buyer_price_assignments (
organization_id BIGINT UNSIGNED NOT NULL,
price_list_id BIGINT UNSIGNED NOT NULL,
priority TINYINT UNSIGNED NOT NULL DEFAULT 10,
valid_from DATE NULL,
valid_to DATE NULL,
PRIMARY KEY (organization_id, price_list_id)
);
Deterministic Price Resolution Order
Keep your pricing resolver transparent so sales reps and buyers never wonder where a quote came from:
- Active customer contract override (
contract_pricesfor that exactorganization_id+sku_id). - Highest-priority assigned price list matching the buyer's requested
quantity >= min_qtytier. - Default wholesale catalog price (fallback when no custom tier applies).
Cache each organization's active price_list_id mappings in Redis, and compute price-break tables in bulk for category grids so browsing 48 SKUs per page executes one clean query instead of 48 N+1 lookups.
Net-Terms Credit Limits and Ledger Integrity
Offering Net-30 terms turns your marketplace into a short-term lender. If two buyers from the same distributor submit $15,000 purchase orders simultaneously against a $20,000 remaining credit line without row-level locking, you instantly extend $30,000 in unapproved credit.
Track credit with an explicit ledger rather than a mutable credit_remaining integer:
CREATE TABLE credit_ledger_entries (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
organization_id BIGINT UNSIGNED NOT NULL,
entry_type ENUM('credit_limit_set', 'order_reserved', 'invoice_issued', 'payment_received', 'credit_memo') NOT NULL,
amount_signed_minor BIGINT NOT NULL, -- positive increases available credit, negative consumes it
reference_type VARCHAR(32) NOT NULL,
reference_id BIGINT UNSIGNED NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
INDEX idx_org_ledger (organization_id, created_at)
);
When a buyer checks out on Net-30 terms, open a database transaction, lock the parent organizations row (SELECT id, credit_limit_minor FROM organizations WHERE id = ? FOR UPDATE), sum their current exposure from credit_ledger_entries, and commit the order_reserved debit only if sufficient credit remains. When finance marks a wire payment settled, insert a payment_received entry—giving you an immutable audit trail matching accounting standards.
Multi-Vendor Split Orders, Commissions, and Payouts
When a buyer orders products from three suppliers in one cart, split the transaction cleanly at checkout confirmation:
- One Parent Order (
orders): Holds the buyer's PO number, total invoice, payment terms, and tax summary. - N Vendor Sub-Orders (
vendor_orders): Each enforces its own MOV/MOQ rules, shipping fee, commission calculation, and warehouse dispatch status.
For card and ACH transactions, platforms like Stripe Connect (detailed in Stripe's platform payment docs) let you capture funds once and route net transfers per vendor sub-order. For manual wire transfers or Net-30 invoices, hold vendor payouts in an internal vendor_payables queue that flips to eligible_for_payout only after buyer payment clears and any dispute window closes.
| Payment Method | Settlement Speed | Marketplace Fee Handling | Operational Risk |
|---|---|---|---|
| Corporate Card | 2 business days | Automatic split transfer | 2.9% fee eats thin wholesale margins |
| ACH / SEPA Direct Debit | 3–5 business days | Low flat fee per invoice | Must handle delayed NSF returns before payout |
| Net-30 Invoice + Wire | 15–45 days | Deduct commission upon payment match | Requires credit underwriting & aging alerts |
UX Details That Drive Real B2B Adoption
Wholesale buyers judge a marketplace on speed of re-ordering, not flashy animations:
- Quick Order Matrix & CSV Upload: Let procurement teams paste
SKU, Qtypairs directly or upload a spreadsheet, validate stock + MOQ + case-pack multiples in one batch, and surface row-level errors instantly. - Quote-to-Order Workflow: Allow buyers to submit a cart as an RFQ, let the vendor adjust freight or bulk discounts, and convert the approved quote into a locked checkout in one click.
- SEO Without Exposing Private Pricing: Following Google's e-commerce search guidelines, render public, fast-cached product specification pages for organic discovery (showing MSRP or "Log in for wholesale tiers"), while loading customer-specific contract pricing strictly after session auth.
Caching public catalog pages at the edge—an approach frequently covered on Cloudflare's engineering blog—keeps search traffic snappy while keeping private buyer contracts completely uncached and tenant-isolated. Even if you first validated your niche on a rapid $399 seven-day website, moving to a purpose-built architecture prevents performance collapse as SKU counts grow into the tens of thousands.
Build vs. Enterprise Marketplace Platforms
Licensing heavy enterprise marketplace software often costs six figures annually before you finish customizing Net-terms or multi-approver workflows—and still leaves you wrestling with rigid plugin hooks. Building a tailored custom web application in Laravel or Node/PostgreSQL gives you exact control over contract pricing, ERP webhooks, and split payouts at a fraction of multi-year license costs.
Just as we bring server-level discipline to managing 300+ WordPress sites for a Finnish partner, we design B2B marketplaces with clear security boundaries, fast query plans, and zero hidden operational surprises.
How SmitDev Scopes and Delivers B2B Marketplaces
At SmitDev, we build custom B2B wholesale portals and multi-vendor marketplaces engineered around real procurement workflows—contract price tiers, Net-30 credit ledgers, CSV bulk ordering, and automated vendor payouts. Backed by 170+ shipped case studies, we ship production increments weekly so founders can onboard anchor suppliers early.
You can partner with us on our $1,999/month dedicated delivery plan or engage focused engineering capacity at $55/day for 8–9 hours of daily build work. Start a conversation via our contact page with your supplier count, payment rails, and ERP stack, and we will map out an actionable phase-one architecture.