---
title: "Commerce modules"
description: "How EdgeCart organizes commerce into business domains — catalog, cart, orders, payments, and more."
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Commerce modules

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](https://edgecart.dev/modules/core) | Shared commerce conventions: money, currency, IDs, errors, pagination, payment provider contract | Understand why prices are integers or how errors are shaped |
| [Sales](https://edgecart.dev/modules/sales) | Stores, team members, sales channels, API keys, customers, regions, tax, promotions | Set up the store, customers, taxes, or discounts |
| [Catalog](https://edgecart.dev/modules/catalog) | Products, variants, categories, collections, prices, translations, inventory | Add or organize what you sell |
| [Cart](https://edgecart.dev/modules/cart) | Cart lifecycle, line items, totals, plugin adjustments | Understand the cart before checkout |
| [Storefront](https://edgecart.dev/modules/storefront) | Storefront bootstrap, publishable key, store profile, locales | Connect a storefront or debug its configuration |
| [Orders](https://edgecart.dev/modules/orders) | Checkout, orders, cancellations, fulfillment | Process an order or ship it |
| [Payments](https://edgecart.dev/modules/payments) | Payment sessions, authorization, capture, refunds, provider webhooks | Capture money or refund an order |
| [Order changes](https://edgecart.dev/modules/order-changes) | Returns, claims, exchanges | Handle a return, claim, or exchange |
| [Observability](https://edgecart.dev/modules/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:

1. **Catalog** provides the product, variant, and price.
2. **Cart** collects line items and calculates totals, using Sales for the
   region, customer, promotions, and tax context.
3. **Orders** turns the completed cart into an order.
4. **Payments** authorizes and captures the money.
5. **Orders** handles fulfillment: create, ship, deliver, or cancel.
6. **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](https://edgecart.dev/modules/catalog) |
| Set up taxes for a country | [Sales](https://edgecart.dev/modules/sales) |
| Create a discount code | [Sales](https://edgecart.dev/modules/sales) |
| Understand why a cart total changed | [Cart](https://edgecart.dev/modules/cart) |
| Capture a payment or issue a refund | [Payments](https://edgecart.dev/modules/payments) |
| Ship an order | [Orders](https://edgecart.dev/modules/orders) |
| Process a return or exchange | [Order changes](https://edgecart.dev/modules/order-changes) |
| Receive order events in another system | [Observability](https://edgecart.dev/modules/observability) |

> **Modules are code boundaries, not a one-to-one copy of other platforms**
>
> EdgeCart's modules are the packages that implement the platform. They do not
> map one-to-one to every domain name you may know from another commerce
> system. For example, tax and promotions live in **Sales**, and fulfillment
> lives in **Orders**.

Start with [Catalog](https://edgecart.dev/modules/catalog) if you are adding products, or
[Sales](https://edgecart.dev/modules/sales) if you are setting up the store itself.

Source: https://edgecart.dev/modules/index.mdx
