This reference lists the workflows for the Payout domain. Import them from
@mercurjs/core/workflows and run them against the Medusa container.
Account & onboarding workflows
Payout workflows
createPayoutWorkflow reads the order with its seller, payout account, and
commission lines, then uses the order id as the transfer’s idempotency key so
a re-run never double-pays.
To work with records directly instead of through a workflow, see the
Service reference. For the events that
drive these workflows, see the Event reference.