Skip to main content
Sends an invitation email (via the notification module, email channel) inviting someone to register as a seller, optionally with a registration link. Not wired to a core API route — run it from your own routes or automations. Does not create any seller records.

Usage

import { inviteSellerWorkflow } from "@mercurjs/core/workflows"

const { result } = await inviteSellerWorkflow(container).run({
  input: {
    email: "owner@acme.co",
    registration_url: "https://vendor.example.com/register",
  },
})

Input

email
string
required
Recipient of the invitation email.
registration_url
string
Link rendered as the email’s call-to-action button.

Result

result
NotificationDTO
The created email notification.