Service

Name Edit Owner
Description Edit the owner's information
Method PUT
URL /owner
Example /api/owner
Access OWNER, MANAGER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description
first_name text yes User first name
last_name text yes User last name
phone_code number yes Country calling code
phone_number number yes Phone number
about text no About the user
address text no User address
city text no City name of the address
state text no State name of the address
country text no Country name of the address
postal_code number no Zip code of the address

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!"
EC034 Country not found Country doesn't match our records "Please enter a valid Country"
R000 Fail The profile wasn't updated
R111 Success The operation was successful "Your information was successfully updated."[Return to previous screen]
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]
VID104 Invalid input for phone_code Phone_code doesn't have only numbers "Phone code must have only numbers"
VID105 Invalid input for phone_number Phone_number doesn't have only numbers "Phone must have only numbers"
VID106 Invalid input for first_name First name is empty or it doesn't have only letters "Please fill out this field" - "First name must have only letters"
VID107 Invalid input for last_name Last name is empty or it doesn't have only letters "Please fill out this field" - "Last name must have only letters"
VID152 Invalid input for address Address has only characters not allowed(" ", ', ’, ‘, ’, ", &, \, <, >, --) "Please enter a valid address"
VID237 Invalid input for about About is empty or it has only characters not allowed(" ", ', ’, ‘, ’, ", &, \, <, >, --) "Please fill out this field" - "Please enter a valid information About you"
VID244 Invalid input for city City doesn't have only letters "City must have only letters"
VID252 Invalid input for country Country name doesn't have only letters "Country must have only letters"
VID256 Invalid input for state State doesn't have only letters "State must have only letters"
VID257 Invalid input for zip_code Zip code doesn't have only letters and numbers "Zip code must have only letters or numbers"