Service

Name Cancel Account
Description Cancel an account of a user
Method POST
URL /security/cancel/account
Example /api/security/cancel/account
Access OWNER, MANAGER, TRAVELER, PARTNER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description
message text yes The reason why the user wants to cancel 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."
EC001 User not found Token user id doesn't match our records "Sorry, We couldn't find your information!"
EC011 Status not found Status: "pending" doesn't match our records "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 cancellation request
EC035 Ticket not found Ticket Type: "account cancellation" doesn't match our records "Oops! Looks like we hit a snag. Try closing the app and reopening it."
R000 Fail The cancel account request wasn't created
R111 Success The operation was successful "Your cancellation request was sent successfully. Our support team will get in touch with you as soon as possible."
SC006 User no authorization The token role is not valid for using the API services "You have been logged out." - [Take the user to the login screen]
SC014 Expired token The token has expired "You have been logged out." - [Take the user to the login screen]
VID150 Invalid input for message Message is empty or it has only characters not allowed(" ", ', ’, ‘, ’, ", &, \, <, >, --) "Please fill out this field" - "Please enter a valid reason"