> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# unterminateSellerWorkflow

> Revert a terminated seller back to suspended.

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

```ts theme={null}
import { unterminateSellerWorkflow } from "@mercurjs/core/workflows"

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

## Input

<ParamField body="seller_id" type="string" required>Id of the terminated seller.</ParamField>

## Result

<ResponseField name="result" type="void">Nothing is returned.</ResponseField>

## Hooks

* `sellerUnterminated` — runs after the status change with `{ seller_id }`.

```ts theme={null}
unterminateSellerWorkflow.hooks.sellerUnterminated(async ({ seller_id }) => {
  // e.g. notify the operator
})
```
