Service

Name Reset Password
Description Send an email with the link to reset the user password
Method POST
URL /security/reset
Example /api/security/reset
Access OWNER, MANAGER, TRAVELER, PARTNER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description
username text yes The user email associated to the account

Response

            
                {
                    "code": R111,
                    "message": "Success"
                }
            
            

Response Codes

Code Message Cause Possible Frontend Message [Behavior]
EC000 Internal error in API Internal error connecting the database "Oops! Looks like we hit a snag. Try closing the app and reopening it."
EC025 Error when try to send email Error trying to send the email with the reset link
R000 Fail The emails wasn't sent
R111 Success The operation was successful "An email has been sent to ...@gmail.com. It contains a link you must click to reset your password. If you do not see the email confirmation in your mailbox right away, please check your junk mailbox. If you still do not see it, you can resend the link or contact support for further help."
SC001 Invalid username Username doesn't match our records "It looks like that email does not match our records. Please try again."
SC007 Guest no authorization The token is not valid for use the API services "Access Denied. Try contacting the support team."
SC014 Expired token The token has expired "Access Denied. Try contacting the support team."
SC020 Reset password is blocked Another reset password request was recently sent "The password for this user has already been requested within the last 24 hours."
VID100 Invalid input for username Username is empty or it doesn't meet the email's format "Please fill out this field" - "Please enter a valid email address (ex: email@homeescape.com)"