Skip to main content

Reset Password

Reset merchant account password using reset token. Requires JWT authentication.

Request

POST /merchant/reset-password

Headers

KeyValueDescription
AuthorizationBearer YOUR_JWT_TOKENJWT access token
Content-Typeapplication/jsonRequest 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"
}