Back to BlogQuality & Testing

QA for a B2B E-Commerce and Wholesale Portal

Rupak Amin

Founder & Lead Engineer, RAITHub

11 min read

RAITHub ships and tests production software. See QA as a Service or talk to us.

A B2B wholesale portal needs more QA than a consumer store because its core features are the risky ones: each buyer sees negotiated prices, spends against a credit limit, orders in bulk, and may need an approver. Test that a buyer sees only their own prices and orders, cannot exceed their credit, cannot read another account's data, and that approvals hold. Automate the pricing, credit and isolation checks.

If you would rather have the suite built and run for you, see how RAITHub would test this below. First, the QA plan.

How is a B2B portal different from a consumer store to test?

A consumer store shows one price to everyone and takes payment at checkout. A B2B portal shows a different price to each buyer, lets them buy on credit, and often routes large orders through an approver. That turns pricing, credit and account isolation into features with real failure modes, and adds roles within a single buyer company (a purchaser, an approver, an admin). The build side is covered in B2B e-commerce platform development and B2B wholesale portal features; this post is the test plan.

What does the QA plan cover?

AreaMinimum bar to passAutomate or manual
Buyer isolationA buyer gets a 404 for any order, price list or document that is not theirsAutomate (API tests)
Trade pricingEach buyer sees only their tier or negotiated price; no consumer price leaksAutomate (unit + API)
Credit limitAn order that would exceed the limit is blocked at the server, not just hidden in the UIAutomate (API)
Approval workflowAn order over the threshold cannot ship until approved; the approver sees itAutomate + manual
Bulk and reorderA large basket, a CSV upload and a reorder all price and reserve stock correctlyAutomate + manual
Roles within a buyerA purchaser cannot approve their own order or change the credit limitAutomate (role matrix)

How do you test buyer-account isolation?

Treat each buyer company as a tenant. For every endpoint returning a buyer-owned record, sign in as buyer A and request buyer B's record by ID; expect a 404, not a 403. Generate the cases from your list of buyer-scoped resources, and back the application check with the database (row-level security for multi-tenant Postgres). This is the same high-risk layer that catches cross-tenant leaks in any multi-party system (how one account ends up seeing another's data).

How do you test trade pricing and credit without leaks?

Pricing is the B2B bug that embarrasses you publicly: a buyer sees a price meant for a different tier, or the consumer price leaks into a trade account. Test the pricing function as a table of cases per tier, and assert at the API that the price returned matches the requesting buyer's agreement, never a cached or default price. Store money as integers and test rounding.

// tests/api/trade-pricing.spec.ts
import { test, expect } from '@playwright/test'
import { tokenFor, agreedPrice } from './helpers'

test('a buyer is quoted only their agreed price', async ({ request }) => {
  const token = await tokenFor('buyer@acme.test')
  const res = await request.get('/api/catalogue/SKU-1/price', {
    headers: { Authorization: 'Bearer ' + token },
  })
  const { unitPrice } = await res.json()
  expect(unitPrice).toBe(await agreedPrice('acme', 'SKU-1')) // their tier, not the default
})

Credit must be enforced on the server, inside the order transaction, not just greyed out in the UI. Test that an order which would push the buyer over their limit is rejected at the API even when the client submits it directly, and that a returned or cancelled order restores available credit. Sundor Skin enforces credit limits in the database for exactly this reason (Sundor Skin).

How do you test approvals and roles within a buyer?

A single buyer company has its own roles, so run a role matrix: every role against every sensitive action. The checks that matter most are separation-of-duty ones. Assert that a purchaser cannot approve their own order, cannot raise their own credit limit, and cannot see colleagues' orders they are not entitled to. Then test the approval workflow end to end: an order over the threshold stays blocked until the approver acts, and the approver actually sees it in their queue. The role-design method is in designing RBAC for a SaaS, and the overall layering in the test pyramid for a SaaS.

Free checklist

AI-Built App Launch Readiness Checklist

25 checks before you let real users in. Enter your email and we’ll reveal it below (and send you a copy).

One email, the checklist, no spam. By submitting you agree we can email you this checklist and reply to your enquiry.

Buy, build or hire?

OptionWhat you getChoose this when
A B2B store platformTrade pricing, accounts and approvals handled by the platformYour pricing and credit rules fit the platform's model
A consumer platform with B2B add-onsLogins and basic tiers bolted onYour B2B needs are light and you accept shallow credit and approvals
A custom portal you test yourselfFull control of pricing, credit and isolationNegotiated pricing, credit or approvals are the business, and you have engineers to test them
A managed QA team on your buildPricing, credit, isolation and role suites gated in CIYou have the portal but no one owns the tests that protect pricing and credit

How long does it take to run this yourself?

For a portal that already works, expect about one to two weeks of one engineer's time to automate the isolation suite, the per-tier pricing and credit tests, and the role matrix, then a manual pass on approvals and bulk ordering. The main risk of doing it yourself is testing the UI and trusting it: the dangerous bugs are server-side, where a direct API call bypasses a greyed-out button and spends past a credit limit or reads another buyer's prices.

Why RAITHub for this

RAITHub built and runs Sundor Skin, a gated B2B wholesale platform with 146 PostgreSQL tables, row-level security on buyer-scoped tables, 88 permission codes across 12 staff roles, tier pricing, credit and FEFO, and 530+ tests including a security suite that tries to read other buyers' data. The same discipline applies to a portal you already have, through the QA as a Service offer. See the eCommerce industry page for the wider context.

When you don't need us

  • You run on a B2B platform whose pricing and credit you have not customised. The vendor tests that logic; focus on your theme and integrations.
  • You have a handful of accounts and manual pricing. A manual QA pass may be enough until volume grows.
  • You need a CREST- or PCI-certified penetration test. RAITHub's security testing is application-level and issues no attestation.

How RAITHub would test this

  • Scope: automate buyer isolation, per-tier pricing and server-enforced credit, and the role matrix including separation of duties; run a manual pass on approvals, bulk and CSV ordering; gate the suites in CI.
  • Ways to buy it: a fixed-price pre-launch QA audit with a written report, a monthly QA plan, or a dedicated QA team RAITHub manages and bills monthly. RAITHub does not place testers under your management.
  • Timeline: fixed in the written quote after the audit, based on how many pricing tiers, roles and approval rules you run.
  • What you receive: tests and CI in your repository, a ranked bug report, a short handover document, IP assigned to you and an NDA as standard.
  • Next step: a free 15-minute technical audit, then a fixed written quote.

See the SaaS development service, or book the free 15-minute audit.

Guidance reviewed on 10 October 2026.

Frequently asked questions

What should I test first in a B2B portal?

Buyer-account isolation, trade pricing and credit limits. A buyer seeing another account's data is a breach, a leaked price is an embarrassment, and a credit limit enforced only in the UI is a debt you cannot collect. Automate all three before launch.

How do I test credit limits?

Submit an order directly to the API that would push the buyer over their limit and assert the server rejects it, not just that the button is disabled. Then confirm a returned or cancelled order restores available credit. Enforce the limit inside the order transaction.

How is B2B pricing tested without leaks?

Test the pricing function as a table of cases per tier, then assert at the API that each buyer is quoted only their agreed price, never a cached or default consumer price. Store money as integers and test rounding on every tier.

What roles exist inside a single B2B buyer?

Commonly a purchaser, an approver and an admin. Run a role matrix and check separation of duties: a purchaser cannot approve their own order or change the credit limit, and cannot see colleagues' orders they are not entitled to.

Can RAITHub test a B2B portal it did not build?

Yes. RAITHub starts with the isolation, pricing and credit paths, writes characterisation tests that pin down current behaviour, and gates them in CI before widening coverage, through its QA as a Service.

Can I just use an AI tool to test the portal instead of hiring a QA service?

AI can draft test cases and generate scaffolding, but the dangerous B2B bugs are server-side logic: a direct API call that bypasses a disabled button to spend past a credit limit, or reads another buyer's prices. Finding those needs a tester who reasons about isolation, separation of duties and transaction boundaries, then gates the suite in CI so regressions cannot slip back in.

Does this include security and accessibility testing, or only pricing and credit?

The core plan covers functional logic: isolation, pricing, credit, approvals and roles. RAITHub also offers application-level security testing against OWASP guidance, which is not a CREST- or PCI-certified penetration test and issues no attestation, and WCAG 2.2 AA accessibility audits that report issues with fixes but do not certify legal compliance. Confirm legal obligations with your adviser.

"My wholesale portal goes live next month and I'm scared a buyer will see someone else's prices or spend past their credit. What should QA check first?"

Start with buyer-account isolation: sign in as one buyer and request another's orders, price lists and documents by ID, expecting a 404. Then assert at the API that each buyer is quoted only their agreed price, and that an order over the credit limit is rejected server-side inside the order transaction, not just hidden in the UI. Automate all three and gate them in CI before launch.

Who should I hire to test a B2B portal when my developers built it and keep passing their own work?

Bring in an independent QA service that reasons about isolation, pricing and credit rather than re-running the developers' happy-path checks. RAITHub tests portals it did not build, writes a ranked bug report split into fix-before-launch and can-wait, and leaves an automated suite gated in your CI so the same bugs cannot return. The team owns the testing outcome and is not placed under your developers.

How is this different from just adding more tests to our own suite?

Your own suite tends to assert what the app is meant to do; independent B2B QA attacks what it must never do, like one buyer reading another's prices or spending past a credit limit through a direct API call. It is adversarial by design, driven at the API rather than the UI, and focused on money and data leaks. Both are valuable, but they catch different failures.

How long before a B2B portal QA engagement is finding real bugs?

A focused first pass on isolation, pricing and credit usually surfaces the dangerous bugs within the first week, because those are the highest-risk paths and are tested first. Turning the findings into an automated, CI-gated suite that stops regressions takes longer and depends on how many buyer types, roles and payment paths the portal has. You get the ranked report before the automation is complete.

Do we own the tests, and is the QA team placed under our management?

You own the tests and the CI configuration, delivered in your repository with IP assigned under NDA. RAITHub works as a dedicated QA team that owns the testing outcome and reports to you, not as staff augmentation placed inside your line management. If the engagement ends, the suite stays with you and keeps running in your pipeline.

b2b ecommerce testingwholesale portal qatrade pricing testingcredit limit testingbuyer isolationapproval workflow testing

Ready to discuss your project?

Book a free 15-minute technical audit with our engineering team.