Skip to content

Sales

Stores, customers, regions, tax, promotions, and sales channels in EdgeCart.

The Sales module owns the commercial context around a purchase: who is selling, who is buying, where they are, what tax applies, and which discounts apply. It is the module behind Store settings, Customers, Promotions, and the region and tax configuration in Shipping & tax.

Features

  • Store identity and team — the store record, its handle, domain, logo, timezone, status, currencies, and locales, plus store members and their roles.
  • Customers and groups — customer accounts, addresses, and groups used for pricing and promotions.
  • Regions — a currency and country set that determines the storefront’s market context.
  • Tax — tax regions, rates, and rules, with ISO country validation.
  • Promotions and campaigns — discount codes and automatic promotions with percentage or fixed amounts, order/line/shipping targets, buy-get rules, budgets, and usage limits.
  • Sales channels and API keys — channels that scope where products are sold, plus publishable and secret API keys for storefront and server access.

Key concepts

Concept What it means
Store The deployment’s selling entity. EdgeCart creates one store per deployment by default.
Member and role A person with access to the admin. Roles are owner, admin, member, and viewer.
Customer A shopper with an account, addresses, and order history.
Customer group A group used to apply group-specific prices and promotions.
Region A market defined by currency and countries. It supplies the storefront’s pricing and tax context.
Tax region and rate The rules that calculate tax for a region and its countries.
Promotion A discount rule, either a code the shopper enters or an automatic promotion.
Campaign A budgeted grouping for promotions and their usage limits.
Sales channel A scope that controls where products are available.
Publishable key A public storefront key (pk_...) used in x-publishable-api-key.
Secret key A server-side API key. Only its hash is stored.

How it fits

  • Admin — Store settings edits the store identity; Customers manages accounts and groups; Promotions manages discounts and campaigns; Shipping & tax configures regions, tax regions, rates, and rules.
  • Storefront — the storefront resolves the active store and default region, then uses the region’s currency and tax context for browsing and checkout.
  • Cart — applies promotion adjustments and tax lines using Sales data.
  • Catalog — customer groups and price lists change which price a shopper sees.
  • Orders — the order keeps the region, customer, promotion, and tax context used at checkout.

Common tasks

  • Merchant — set up your store, then use the admin areas above. Customer, promotion, and tax workflows are part of the merchant guide as those pages land.
  • Developer — browse the Admin API in the API reference. The API conventions page covers x-store-id, roles, and idempotency.

Current boundaries

  • The admin catalog, customer, and promotion pages cover list/create/delete; editing those records is API-only today.
  • Store locales are configured on the store record. There is no admin page for adding or removing locales yet, so the storefront switcher appears only when additional locale rows exist.
  • Guest storefront reads fail customer- and group-specific pricing rules closed; a signed-in customer session is required for those rules.
  • Region rows created before the ISO country dictionary was added keep their original blank ISO fields.

See current limitations for the full list.

  • Catalog — products, prices, and inventory.
  • Cart — applies tax and promotions.
  • Orders — records the commercial context.
  • Storefront — exposes the store profile and region.

Type to search…

↑↓ navigate↵ selectEsc close