Skip to main content
This reference lists the workflows for the Commission domain. Import them from @mercurjs/core/workflows and run them against the Medusa container.

Rate workflows

Rule workflows

Order-line workflows

deleteCommissionRatesWorkflow exposes a commissionRatesDeleted hook, and batchCommissionRulesWorkflow runs its create / update / delete steps in parallel. refreshOrderCommissionLinesWorkflow also runs as a step inside the cart-split checkout workflow.
To work with records directly instead of through a workflow, see the Service reference. To run side effects when an order changes, see the Event reference.