Skip to main content
Validates the seller is currently suspended, then sets status back to open and clears status_reason. Triggered by POST /admin/sellers/:id/unsuspend. Emits seller.unsuspended.

Usage

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

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

Input

seller_id
string
required
Id of the suspended seller.

Result

result
void
Nothing is returned.

Hooks

  • sellerUnsuspended — runs after the status change with { seller_id }.
unsuspendSellerWorkflow.hooks.sellerUnsuspended(async ({ seller_id }) => {
  // e.g. re-enable listings
})