@mercurjs/core/workflows and run them against the Medusa container.
Offer workflows
Hooks
Each workflow exposes hooks so you can extend it without forking:Behavior notes
- Prices are written on the master variant’s shared price set, each row scoped by an
offer_idPriceRule. On update, supplyingpricesreplaces the ladder with the given rows; omitting it leaves prices untouched. - Inventory items passed to
createOffersWorkfloware created and linked to the offer (and the store) in the same run. Every offer needs at least one. - Workflows run with compensation, so a failed create rolls back the inventory items, prices, and links it had already created.