Manta Core
Manta Core adds company accounts to Medusa. Several people can buy for the same company and share its addresses, carts and order history.
Companies and buyers
- Company (
Company): the purchasing account of a customer organisation, with its currency, billing address and shipping addresses. - Buyer membership (
Buyer): the link between a Medusa customer and one company. A customer can have memberships in several companies and still make personal purchases. - Company group (
CompanyGroup): companies targeted by the same Medusa price lists and promotions.
Company purchases
A company cart can be shared by its buyers. For example, Alice creates a cart for Acme and Karim places the order. The order remains linked to Acme; Core records who created the cart and who placed the order. Revoking Alice’s buyer membership later keeps that history.
Carts and orders use Medusa’s commerce engines. Core supplies the company context for pricing and promotions, while Medusa handles calculations, payments, inventory and fulfilment.
Admin and storefront
Core adds company pages to the Medusa Admin and APIs for your storefront. Use the native Admin or the optional Manta Dashboard.
In this section
Installation
Install Core in your Medusa application, see what changes in the Admin, then connect your storefront.
Concepts
A customer is a person. A company is the account they buy for. A buyer membership links the two. A person can buy for several companies and keep their personal purchases separate.
Data model
Core adds companies, buyer memberships, company groups and addresses in the b2b_core module. Carts and orders remain native Medusa objects; CartContext and OrderContext link them to the company.
API
Use the Store API for company purchasing in your storefront and the Admin API for merchant operations. Both use Medusa authentication.
Customisation
Add your company creation and purchasing rules through Core’s extensions. Run Core workflows in your backend, or use Medusa subscribers to synchronise changes with another system. Your application must authorise the caller before invoking backend workflows.
Compatibility
Medusa versions supported by Core.