Reset Password
Reset merchant account password using reset token. Requires JWT authentication.
Request
POST /merchant/reset-password
Headers
| Key | Value | Description |
|---|---|---|
| Authorization | Bearer YOUR_JWT_TOKEN | JWT access token |
| Content-Type | application/json | Request content type |
Request Body
{
"current_password": "oldpassword",
"new_password": "newpassword",
"confirm_password": "newpassword"
}
Responses
200 OK
{
"status": true,
"data": {
"message": "Password reset successfully"
},
"error": [],
"message": "success!"
}
400 Bad Request
{
"status": false,
"data": {},
"error": ["Current password is incorrect"],
"message": "Password reset failed"
}
401 Unauthorized
{
"status": false,
"data": {},
"error": ["Invalid or expired token"],
"message": "Unauthorized"
}