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

# Change Password

> Change the authenticated merchant's account password

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

## Request Body

<ParamField body="currentPassword" type="string" required>
  The merchant's current password.
</ParamField>

<ParamField body="newPassword" type="string" required>
  The new password. Minimum 8 characters, must include uppercase, lowercase, and a number.
</ParamField>

### Example Request

```json theme={null}
{
  "currentPassword": "SecureP@ss123",
  "newPassword": "NewSecureP@ss456"
}
```

### Example Response (200)

```json theme={null}
{
  "message": "Password changed successfully"
}
```

### Error Responses

```json 401 Wrong Password theme={null}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Current password is incorrect"
  }
}
```

```json 400 Validation Error theme={null}
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "New password must be at least 8 characters"
  }
}
```
