The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
---
title: "Terminate Seller"
api: "POST /admin/sellers/{id}/terminate"
description: "Terminate a seller account."
---
Sets the seller's status to `terminated`, optionally recording a reason.
## Path parameters
<ParamField path="id" type="string" required>The seller's ID.</ParamField>
## Query parameters
<ParamField query="fields" type="string">Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.</ParamField>
## Body parameters
<ParamField body="reason" type="string">Reason for the termination, stored in `status_reason`.</ParamField>
## Response
<ResponseField name="seller" type="object">
<Expandable title="properties">
<ResponseField name="id" type="string">The seller's ID.</ResponseField>
<ResponseField name="status" type="string">The seller's status, `terminated` after this call.</ResponseField>
<ResponseField name="status_reason" type="string">The recorded termination reason.</ResponseField>
<ResponseField name="updated_at" type="string">Last update timestamp.</ResponseField>
</Expandable>
</ResponseField>
<RequestExample>
```bash cURL
curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/terminate' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{"reason": "Account closed by operator"}'
```
```ts JS Client
const { seller } = await client.admin.sellers.$id.terminate.mutate({
$id: "sel_01HXYZABCDEF",
reason: "Account closed by operator",
})
```
</RequestExample>
<ResponseExample>
```json 200
{
"seller": {
"id": "sel_01HXYZABCDEF",
"name": "Acme",
"status": "terminated",
"status_reason": "Account closed by operator",
"updated_at": "2026-06-10T16:45:00.000Z"
}
}
```
</ResponseExample>