Skip to main content
Validates the seller is currently terminated, then sets status to suspended and clears status_reason. The seller must be unsuspended separately to reopen the store. Emits seller.unterminated.

Usage

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

await unterminateSellerWorkflow(container).run({
  input: { seller_id: "sel_123" },
})

Input

seller_id
string
required
Id of the terminated seller.

Result

result
void
Nothing is returned.

Hooks

  • sellerUnterminated — runs after the status change with { seller_id }.
unterminateSellerWorkflow.hooks.sellerUnterminated(async ({ seller_id }) => {
  // e.g. notify the operator
})