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

# Disable 2FA

> Disable two-factor authentication on the merchant's account

<Note>
  This endpoint requires a valid Bearer token in the `Authorization` header.
</Note>

Disables two-factor authentication for the merchant's account. Requires a valid TOTP code to confirm the action.

## Request Body

<ParamField body="code" type="string" required>
  Six-digit TOTP code from the authenticator app, or a valid recovery code.
</ParamField>

### Example Request

```json theme={null}
{
  "code": "739201"
}
```

### Example Response (200)

```json theme={null}
{
  "message": "Two-factor authentication disabled successfully"
}
```

### Error Responses

```json 400 Invalid Code theme={null}
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid TOTP code"
  }
}
```

```json 400 Not Enabled theme={null}
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Two-factor authentication is not enabled"
  }
}
```
