Skip to main content
The Store API is what a storefront talks to. It extends Medusa’s store routes with marketplace discovery (sellers, offers, search) and replaces the cart completion flow with the multi-vendor order-group split. Most routes are public; customer authentication requirements are noted per group. See API conventions for pagination and field selection.

Products and discovery

MethodPathPurpose
GET/store/productsList published products (filtered to sellers visible to the shopper)
GET/store/products/:idRetrieve a product
GET/store/product-categories[/:id]Category tree with media and icons
GET/store/product-attributes[/:id]Filterable attributes for building facet UIs
MethodPathPurpose
POST/store/searchQuery the search index across products and offers
Request body: q, limit (default 12, max 100), offset, pricing context (region_id, country_code, province), and provider-owned filters. Response: { hits, count, limit, offset, facets } with pre-labelled collection, category, and attribute facets. See the Search module for document shapes and filter semantics.

Sellers

MethodPathPurpose
GET/store/sellersList public seller storefronts (only open sellers outside a closure window)
GET/store/sellers/:idRetrieve a seller storefront

Offers

MethodPathPurpose
GET/store/offersList offers, with per-offer calculated prices
GET/store/offers/:idRetrieve an offer

Carts and checkout

Mercur overrides the cart routes so a single cart can span multiple sellers:
MethodPathPurpose
POST/store/carts/:id/line-itemsAdd a line item (offer-aware, multi-seller)
POST/store/carts/:id/shipping-methodsAdd per-seller shipping methods
GET/store/shipping-optionsShipping options available for the cart, grouped by seller
POST/store/carts/:id/promotionsApply promotions
POST/store/carts/:id/completeComplete the cart — splits it into per-seller orders under an order group

Order groups

Customer authentication required.
MethodPathPurpose
GET/store/order-groupsThe customer’s order groups
GET/store/order-groups/:idAn order group with its per-seller child orders

Next steps

Order groups

Search module