This endpoint requires a valid Bearer token in the Authorization header.
Request Body
The merchant’s current password.
The new password. Minimum 8 characters, must include uppercase, lowercase, and a number.
Example Request
{
"currentPassword": "SecureP@ss123",
"newPassword": "NewSecureP@ss456"
}
Example Response (200)
{
"message": "Password changed successfully"
}
Error Responses
{
"error": {
"code": "UNAUTHORIZED",
"message": "Current password is incorrect"
}
}
{
"error": {
"code": "VALIDATION_ERROR",
"message": "New password must be at least 8 characters"
}
}