> ## 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.

# Désactiver un sous-marchand

> Désactiver un sous-marchand

# Désactiver un sous-marchand

Désactivez un sous-marchand. Il ne sera plus utilisable dans les transactions. Cette action est réversible via le dashboard.

## Endpoint

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

## Headers

| Nom           | Type   | Requis | Description           |
| ------------- | ------ | ------ | --------------------- |
| Authorization | string | Oui    | Bearer YOUR\_API\_KEY |

## Réponse Succès (200)

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