Skip to main content
The Offer module exposes a service you can resolve from the Medusa container to read and write records directly, without going through a workflow. Use it inside custom services, subscribers, or scheduled jobs.

Generated methods

The Offer model gets a standard set of auto-generated methods:

Group by seller

listOffers and listAndCountOffers accept a group_by_seller filter. When set, the service collapses offers to one row per (product, seller) group and populates variant_count and offer_ids on each returned offer.
The service writes the offer row and its computed fields directly. It does not create the offer’s prices, inventory items, or module links, and it does not emit events or run compensation. Prefer the workflows for anything that must wire up pricing, inventory, or links.