createSellersWorkflow that creates the Seller record along
with its defaults. Run it from any place that has access to the Medusa container.
Run the workflow
src/api/custom/route.ts
An operator can set a new store to
open right away. A store created through
the public self-registration flow starts in pending_approval and waits for
operator review. See Moderate stores.Attach custom data
The workflow accepts anadditional_data payload. It is passed to the workflow’s
hooks, so you can persist marketplace-specific data alongside the store without
forking the workflow.