Workflows
createSellerCustomerGroupWorkflow
This documentation provides a reference to thecreateSellerCustomerGroupWorkflow. It belongs to the @mercurjs/b2c-core package.
This workflow creates a customer group for a seller and links it to the seller. It ensures that customer groups are properly associated with their respective sellers in the marketplace.
Source code
Examples
- API Route
packages/modules/b2c-core/src/api/vendor/customer-groups/route.ts
Steps
- createCustomerGroupsWorkflow: Creates the customer group using Medusa’s core workflow.
- createRemoteLinkStep: Links the created customer group to the seller.
Input
The customer group creation details.
Output
The created customer group.