Service

Name Resend Enable Code
Description Reset and resend by email the code to enable an user
Method PATCH
URL /security/resend/code
Example /api/security/confirm/email
Access OWNER, MANAGER, TRAVELER, PARTNER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description

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 confirmation code [Continue the flow, the user can later resend the code]
R000 Fail The user email is not valid "Oops! Looks like we hit a snag. Try closing the app and reopening it."
R111 Success The operation was successful [Redirect to "Enter confirmation code" screen]
SC001 Invalid username Username doesn't match our records "Sorry, We couldn't find your information!"
SC007 Guest no authorization The token is not valid for use our API services "Access Denied. Try contacting the support team."
SC008 Error on generate token Internal error generating the token "Oops! Looks like we hit a snag. Try closing the app and reopening it."
SC011 User is enabled The user is active in our records "Your account has been activated."
SC014 Expired token The token has expired "Access Denied. Try contacting the support team."
VID100 Invalid input for username Username is empty or it doesn't meet the email's format "Please enter a valid email address (ex: email@homeescape.com)"