Workflows
createVendorCampaignWorkflow
This documentation provides a reference to thecreateVendorCampaignWorkflow. It belongs to the @mercurjs/b2c-core package.
This workflow creates a new campaign and links it to the seller creating it. This allows for seller-specific campaigns within the marketplace.
Source code
Examples
- API Route
packages/modules/b2c-core/src/api/vendor/campaigns/route.ts
Steps
- createCampaignsWorkflow: Creates the campaign using Medusa’s core workflow.
- createRemoteLinkStep: Links the created campaign to the seller (using
SELLER_MODULE) and the promotion module.
Input
Output
The created campaigns.