The Admin and Vendor panels call it a store. The code calls the same record a
Seller (id prefix sel), and you resolve its module with MercurModules.SELLER from @mercurjs/types.Key features
The Seller module covers the full life of a store account:- Many-to-many teams: a member can belong to several stores and picks the active one per request
- Owner protection: the store’s owner membership can’t be removed or have its role changed
- Seller roles: each membership stores one of five
SellerRolevalues, from administration to support - Token-based invites: signed invite tokens that expire after 7 days by default
- Governed lifecycle: four statuses, each transition run by its own workflow with a hook and an event
- Scheduled closures: a
closed_fromandclosed_towindow that hides a store from the Store API without changing its status - Premium flag: an
is_premiumboolean the operator sets for featured placement - Region assignment: every store links to one or more regions, starting with the default region
How it works
A store moves from creation to trading in a fixed order:- A seller registers, or your code runs
createSellersWorkflow, and the store starts inpending_approval - The workflow links the store to the default region and to any
region_idsyou pass - The first member joins as owner, either at registration or by accepting the invite the workflow sends
- The operator runs
approveSellerWorkflow, and the store becomesopen - The Store API lists the store and its offers while it’s
openand outside a closure window
Get started
Learn how stores, teams, and statuses fit together.The store
The seller record, its currency, regions, and business details.
Team & members
Members, owners, roles, invites, and the active store.
Lifecycle
Statuses, transitions, scheduled closures, and premium.
Examples
Build against stores in your own server code.Create a store
Run
createSellersWorkflow from a route or a seed script.Moderate stores
Approve, suspend, terminate, and reinstate stores in code.
Manage the team
Invite, add, re-role, and remove members.
Resources
The data models, links, workflows, service methods, and events behind stores.Data models
Seller, Member, SellerMember, MemberInvite, and the satellite records.Links
How a store connects to orders, offers, payouts, regions, and more.
Workflows
Store, lifecycle, and team workflows with their hooks.
Service
Seller module service methods for direct reads and writes.
Events
Events emitted as stores, members, and invites change.