Skip to main content
Loads the existing invite, deletes it, and creates a new one with the same email and role — resetting the token and expiry. Triggered by POST /admin/sellers/:id/members/invites/:invite_id/resend and the vendor equivalent. Emits member_invite.created for the new invite.

Usage

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

const { result } = await resendMemberInviteWorkflow(container).run({
  input: {
    invite_id: "meminv_123",
    seller_id: "sel_123",
  },
})

Input

invite_id
string
required
Id of the invite to re-issue; must belong to the seller.
seller_id
string
required
Seller the invite belongs to.

Result

result
MemberInviteDTO[]
The re-created invite (single-element array) with a new token and expires_at.