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

# Deactivate a Sub-Merchant

> Deactivate a sub-merchant

# Deactivate a Sub-Merchant

Deactivate a sub-merchant. It will no longer be usable in transactions. This action is reversible via the dashboard.

## Endpoint

```bash theme={null}
DELETE /api/v1/sub-merchant/:subMerchantId
```

## Headers

| Name          | Type   | Required | Description           |
| ------------- | ------ | -------- | --------------------- |
| Authorization | string | Yes      | Bearer YOUR\_API\_KEY |

## Success Response (200)

```json theme={null}
{
  "success": true,
  "message": "Sub-merchant deactivated successfully",
  "data": {
    "subMerchantId": "sm-7f4a9940c621",
    "isActive": false
  }
}
```
