Case Study: Building a Scalable B2B eCommerce Platform with MedusaJS

Download Ebook
Industry: eCommerce
Market: Europe
Project duration: 6 months (ongoing)
Project Overview:  B2B eCommerce platform tailored for a multi-vendor marketplace. 

A platform that allows multiple vendors to upload, manage, and sell their products while being provided with a dedicated admin panel for them. Each vendor is enabled to manage its internal team. The platform supports corporate buyers, companies that can purchase products from preferred vendors. Within the platform, buyers are enabled to assign their employees to place orders on behalf of their organization. 

To ensure seamless transactions, the platform uses Stripe, one of the leading payment systems, to generate invoices and handle payment processing.  

The platform operates as a B2B eCommerce marketplace and multivendor platform, enabling companies to buy from or sell to other businesses. The platform is also designed with specific potential and flexibility to support B2C transactions.

Challenge Overview  

Develop a custom B2B order flow with invoicing that seamlessly integrates with Stripe while handling complex pricing, bulk orders, and payment reconciliation. Further challenges were ensuring accurate invoice generation, tax compliance, and a smooth user experience.

Products and Features

Products:

  • Online selling platform - B2B customer platform 
  • Super admin panel
  • Vendor admin panel

Features:

  • B2B Marketplace Platform (NextJS)
  • Super Admin Panel (ReactJS)
  • Vendor Admin Panel (ReactJS)
  • Custom Order Flow
  • Quantity-Based Pricing
  • Stripe Integration for Invoices & Payments
  • Dynamic Translations (LibTranslate)

Additional feature:

  • Default language selection, dynamic translation of all product information into the user's preferred language
  • Custom order & payment process
  • Quantity-based prices (depending on the ordered quantity)

Technologies

Frontend: NextJS, ReactJS

Backend: NodeJS, MedusaJS

Platforms: AWS, Hetzner, Coolify

About the industry and the situation on the market

B2B eCommerce marketplaces have been proven to be an ideal way of connecting businesses, especially those buying in bulk or looking to simplify purchasing by referring to multiple vendors at once and in one place. In practice, B2B transactions typically happen on a bigger scale than in the B2C eCommerce marketplaces, with payments processed mostly through digital channels. The value of B2B online transactions goes beyond the B2C market, which adds to its eCommerce worldwide interest.

Additionally, B2B buying decisions have been shifting greatly toward a buyer-centric digital model, and this change has shown to be rising over the past couple of years. 

In 2022, 65% of B2B companies worldwide offered full e-commerce capabilities, which was an increase from 53% recorded in early 2021, with 60% of B2B buyers indicating they are open to purchasing via digital marketplaces. Afterward, Gartner predicted that by 2025, 80% of B2B sales interactions between suppliers and buyers will occur through digital channels.

80% of B2B sales interactions between suppliers and buyers will occur through digital channels

There are multiple benefits of B2B eCommerce platforms. From complete vendor control, product management features, multilingual and multi-currency options, to secure payment gateways and inventory management. These platforms empower sellers with enhanced control, flexibility, and visibility to manage complex transactions and bulk orders. Through B2B online marketplace models, sellers can streamline operations, strengthen buyer relationships, and expand their market presence.

Currently, the US is one of the largest and most mature global markets in terms of B2B eCommerce adoption, while the number of European businesses discovering its benefits continues to rise.

Beyond the current leaders in the B2B eCommerce market like Alibaba, Amazon Business, EWorldTrade, TradeKey, and Mercateo, offering bulk pricing, verified suppliers, and tools to simplify global trade, there are many businesses actively developing their own marketplaces to stay competitive and meet evolving digital demands.

About the client and the product

Our Europe-based client, an eCommerce marketplace platform in expansion, recognized the potential for growth and improvement within its services and general online businesses. The initiation was rooted in the idea of elevating their services to a higher level, with a clear vision for service modernization, cutting-edge technology implementation, and streamlining operations, all focused on enhancing delivery for their customers.

To meet the needs of their complex products and services, the client chose MedusaJS, a powerful open-source headless e-commerce platform, as the main technology. Recognizing its fresh possibilities but challenges that may occur, the client turned to Inviggo for expert software development and engineering support. Our team of three was dedicated to the project, planning the B2B flow from scratch, ensuring a smooth integration of MedusaJS.

Project’s Main Challenges:

  1. Complex Custom Order Flow
  2. Dynamic Translations for Dynamic Data 
  3. Stripe Integration for Invoices & Payments
  4. Dynamic shipping - still in progress due to the nature of products (size, quantity etc)

Complex Custom Order Flow – Developing a highly flexible order system that supports bulk purchases, tiered pricing, and multi-step approvals while ensuring a seamless user experience for B2B buyers.

Dynamic Translations for Dynamic Data – Implementing a translation system that supports product details and other dynamic content in multiple languages while maintaining accuracy and performance.

Stripe Integration for Invoices & Payments – Managing invoice-based transactions, handling partial payments, and ensuring smooth reconciliation between orders and payments within the custom flow.

Dynamic Shipping – A challenging aspect due to varying product sizes, weights, and quantities, requiring a flexible system that can dynamically calculate shipping costs based on different factors.

Additional challenge for buyers - Implementing a buyer onboarding flow within which they can add products only after entering a valid VAT number. Additionally, superadmins must approve the account before the buyer can access and use the platform.

Additional challenge for vendors - A Stripe onboarding process is required. Once completed, the account must be reviewed and approved by superadmins before the vendor can start using the platform.

Approach and Technology Stack:

Technology stack for b2b ecommerce

MedusaJS – Chosen as the foundation for its robust eCommerce capabilities and high customizability, allowing us to tailor the order flow, invoicing, and vendor management to B2B needs.

Next.js – Used for the buyer-facing frontend, ensuring fast performance and strong SEO optimization to improve product discoverability.

Vendor Admin Panel (ReactJS) – A standalone React application, as SEO was not a concern, providing vendors with an intuitive dashboard to manage their products, orders, and invoices.

Super Admin Panel (ReactJS) – Built on Medusa's default admin panel but significantly extended to accommodate advanced platform management features.

Stripe – Integrated for invoice-based payments, handling transactions, partial payments, and reconciliation efficiently.

Platform’s Key Features and Functionalities:

  1. Adding to a single cart
  2. Multi-vendor ordering in a single checkout
  3. Step-by-step e-mail notification
  4. Order cancellation
  5. Order verification process
  6. Advanced search based on user preferences
  7. Bulk discount 
  8. Purchase history with invoices provided

B2B marketplace screenshot

Custom Order Flow & Payment Handling

The marketplace supports multi-vendor orders, allowing buyers to add products from different vendors to a single cart while managing separate orders behind the scenes. Payments and invoices are processed through Stripe, ensuring a seamless checkout experience. The system includes order verification, email notifications for each step, and the ability to cancel orders when applicable.

Pricing & Discounts

Vendors can set quantity-based pricing and bulk purchase discounts, encouraging larger transactions. Pricing is dynamically calculated based on the selected quantities, ensuring buyers always see the most relevant price.

Search & Categorization

The marketplace integrates MeiliSearch for fast and accurate product searches. Products are organized into dynamic categories, making it easier for buyers to find what they need.

Dynamic Translations

All static and dynamic content, including product information, is translated using LibTranslate. This ensures a fully localized experience tailored to each buyer’s preferred language.

Key Results of the Project

  1. Buyers can now complete purchases from multiple vendors in a single transaction, significantly reducing friction and improving the overall procurement experience.
  2. The platform now supports complex B2B pricing structures, resulting in smoother bulk order management and increased average order values through tiered pricing.
  3. With dynamic translations and scalable shipping capabilities in place, the platform is fully equipped to support international users and cross-border transactions.
  4. A verification process for both buyers and vendors has increased trust across the platform, reduced fraudulent activity, and ensured compliance with regional tax and payment regulations.

Your turn.

Ready to scale your eCommerce platform?

No matter where you are in your business journey, having a trusted, reliable, and experienced development team on board makes all the difference. With the right support, your unique ideas can turn into exceptional products. 

Let’s craft your next digital success, together. Contact us!

Medusa.js FAQ

💬 Frequently Asked Questions

How many development hours can you save by building a marketplace with Medusa.js? +
Medusa.js comes with a robust architecture and predefined entities like carts, users, products, and pricing—saving substantial backend development time for B2C marketplaces.

For B2B platforms, although additional customization is required, Medusa’s modular design made it easy to extend. By avoiding the need to build core functionality from scratch, we saved several months of development effort.
Can you customize an admin panel in Medusa.js? +
Yes, Medusa includes a default admin panel ideal for B2C use.

For B2B needs, we cloned and customized the panel to create a vendor-specific version. While it's easy to extend the default panel, it’s important to note that you can’t remove or hide existing sections—only add new ones.
Is Medusa.js free? +
Yes! Medusa.js is fully open source and free to use.

However, infrastructure and hosting costs may apply depending on the scale and deployment setup of your platform.
How do you handle multilingual features in Medusa.js? +
We initially explored adding multilingual fields to the core models, but that approach added too much complexity to the vendor UI.

Instead, we implemented a dynamic translation layer using LibreTranslate. Vendors provide content in a single default language, and translations are handled in real time on the server side based on the customer’s language preferences.

This method supports both static and dynamic data, such as frequently updated product names and categories, without requiring manual input for each language.

Featured Photo by Nataliya Vaitkevich

Download your copy now!

You can download your Complete Vendor Evaluation Toolkit for Health Tech Companies here.
In case you need more information contact us at office@inviggo.com
Oops! Something went wrong while submitting the form.

Download your copy now!

You can download your The Ultimate Guide to Turning Your MVP into a Successful Product  here.
In case you need more information contact us at office@inviggo.com
Oops! Something went wrong while submitting the form.