EdgeCart’s commerce logic is split into nine modules. Each module owns one business domain and provides the behavior behind the admin screens, the storefront, and the API. The modules collaborate through services rather than reaching into each other’s data.
This section explains what each module is for, the concepts you need to know, and where the module appears in your store. It is a business overview, not a code reference; implementation details live in the developer guide and API reference.
Module map
| Module | Covers | Read it when you need to… |
|---|---|---|
| Core | Shared commerce conventions: money, currency, IDs, errors, pagination, payment provider contract | Understand why prices are integers or how errors are shaped |
| Sales | Stores, team members, sales channels, API keys, customers, regions, tax, promotions | Set up the store, customers, taxes, or discounts |
| Catalog | Products, variants, categories, collections, prices, translations, inventory | Add or organize what you sell |
| Cart | Cart lifecycle, line items, totals, plugin adjustments | Understand the cart before checkout |
| Storefront | Storefront bootstrap, publishable key, store profile, locales | Connect a storefront or debug its configuration |
| Orders | Checkout, orders, cancellations, fulfillment | Process an order or ship it |
| Payments | Payment sessions, authorization, capture, refunds, provider webhooks | Capture money or refund an order |
| Order changes | Returns, claims, exchanges | Handle a return, claim, or exchange |
| Observability | Audit log, outbox, webhooks, email delivery | Connect webhooks or investigate delivery |
The purchase chain
A normal purchase moves through the modules in a predictable order:
- Catalog provides the product, variant, and price.
- Cart collects line items and calculates totals, using Sales for the region, customer, promotions, and tax context.
- Orders turns the completed cart into an order.
- Payments authorizes and captures the money.
- Orders handles fulfillment: create, ship, deliver, or cancel.
- Order changes handles anything after the sale: returns, claims, and exchanges.
Sales sits underneath the whole chain: it owns the store, the customer, regions, tax configuration, and promotions. Storefront provides the public configuration a storefront needs before it can call the keyed APIs. Observability records what happened and delivers webhooks and email.
What do you want to do?
| Goal | Start with |
|---|---|
| Add a product and variants | Catalog |
| Set up taxes for a country | Sales |
| Create a discount code | Sales |
| Understand why a cart total changed | Cart |
| Capture a payment or issue a refund | Payments |
| Ship an order | Orders |
| Process a return or exchange | Order changes |
| Receive order events in another system | Observability |
Start with Catalog if you are adding products, or Sales if you are setting up the store itself.