Core 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.
Vocabulary
| Term | Meaning |
|---|---|
Customer (Customer) | A person recorded in Medusa. Personal purchases stay separate from company purchases. |
Company (Company) | The buying account. Active or suspended, with a currency. |
Buyer membership (Buyer) | Links a customer to a company. Active or revoked. |
Company group (CompanyGroup) | An audience of companies. A company can be in several groups. |
| Creator | The person who created the cart. Kept when known. |
| Person who placed the order | The person, or the merchant, who placed the order. Can differ from the creator. |
An example, from first cart to revocation
- Alice is a customer. She is an active buyer for two companies, A and B.
- She creates a cart for A. It is a native Medusa cart, linked to A.
- Karim, also a buyer for A, picks up the cart and completes it.
- The Medusa order remains linked to A. Core keeps Alice as the cart creator and Karim as the person who placed the order.
- Alice’s buyer membership for A is revoked. From then on, her access to A is refused, even with a valid session. Her personal purchases and her purchases for B are untouched.
What buyers share
The active buyers of an active company share its carts, its address book and its order history. A colleague can pick up a cart; the creator is kept. Revoking a buyer’s membership blocks their next requests. It doesn’t erase history or cancel a payment in progress.
Personal or company: always explicit
The same person can buy for themselves on Saturday and for their employer on Tuesday. Core never guesses: the company is named in every request.
- Personal purchase: the native Store routes.
- Company purchase:
/store/b2b/companies/:company_id/… - Each company cart is linked to exactly one company. There is no global “current company” that switches every tab at once.
Prices and promotions
For a company purchase, Core gives Medusa’s engines the company, its groups, the commerce type (b2b) and the sales channel. Medusa calculates the price with its own rules.
- Personal customer groups don’t apply to company purchases.
- Medusa’s global rules still apply.
- Being a buyer for a company gives no discount by itself: target a price list or a promotion at the company or its groups.
Open Core’s Price Lists or Promotions entry in the native Admin, or the corresponding B2B entry in Dashboard. In Create, search Companies or Company groups and select the intended accounts. Complete the native steps and save; reopen Company audience on the saved offer to verify or edit targeting. Supplying both families requires both criteria. Personal Customer Groups are separate.
Open Campaigns under B2B Promotions in Dashboard, or Core’s native Campaigns entry. Set native budget and dates, then associate unattached business-only promotions. Target Companies/Company groups on each promotion: the campaign propagates no audience rules and remains B2B when empty. These promotional budgets are not Company purchasing/spending limits.
Company groups: an audience, not a hierarchy
A company group (CompanyGroup) brings together companies you want to target with the same price lists and promotions.
- It gives no access to other companies’ orders.
- It creates no parent company or inherited rights.
- Removing a company from a group changes future prices, never an order already placed.