At the end of last year, we released our official B2B Starter for Medusa V2 and Next.js. The community has embraced it enthusiastically, with several projects already live in production! Based on user feedback, we're continuously enhancing the Starter by adding new features, fixing bugs, and improving documentation. Here's a quick overview of the latest additions.
Approval Module
Approvals are a key part of B2B commerce, where purchases often need sign-off from multiple people to stick to budgets and policies. This helps avoid mistakes and keeps things running smoothly. It includes features like:
- Require cart approvals by company admin or sales reps
- Cart locking
- Company-level settings
The cart locking is handled in a cart validation workflow hook, a new core feature shipped recently. If a cart is 'pending approval,' all cart operations are temporarily blocked until an admin responds.
This approval workflow ensures compliance with company purchasing policies. When a cart requires approval, relevant stakeholders can review, authorize and complete purchases quickly. This process helps prevent unauthorized spending while keeping business operations moving smoothly.
GitHub Wiki
As we received questions about the B2B Starter's features and implementation, weve added a Wiki page on GitHub to help developers get started. The Wiki provides an overview of the main features, data models and where to find relevant code in the repository.
This addition to our documentation should make it easier for developers to navigate the starter and understand its basic structure and features like:
- Company management
- Employee spend limits
- Quotation flows
- Cart approvals
- Bulk-add-to-cart
Check out the wiki here.
Company API Integration Tests
As part of our testing efforts, we've added integration tests for the Company HTTP API endpoints. These tests cover basic operations like company creation and user management, ensuring the API handles requests correctly and maintains data integrity.
We plan to gradually expand test coverage to other customized areas of the B2B Starter in future updates.
Security Improvements & Bug Fixes
We have implemented several security improvements and bug fixes in recent updates. These changes include enhanced spending limit validations, API endpoint security adjustments, and improvements to core functionalities like shipping options and customer address management.
We have also updated all Medusa packages to version 2.5.1, ensuring the B2B Starter remains current with the latest security patches and performance improvements.
Get Started
TL;DR: there has never been a better time to start building your B2B commerce project with Medusa! Check out our B2B Starter in the GitHub repository. The repository includes everything you need to get up and running, including setup instructions and documentation.