Service

Name Get Traveler
Description Get the traveler's information
Method GET
URL /traveler
Example /api/traveler
Access TRAVELER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description

Response

            
                {
                    "photo": "http://dev.homeescape.com/uploads/images/9319/HE-9319-1632861.jpeg"
                    "first_name": "Traveler",
                    "last_name": "Developer",
                    "phone_code": "1",
                    "phone_number": "8884230002",
                    "about": "Hello HomeEscape",
                    "city": "Miami",
                    "hometown": "Miami",
                    "gender": "F",
                    "languages": {
                        "english": true,
                        "spanish": true,
                        "russian": false,
                        "chinese": false,
                        "german": false,
                        "french": false,
                        "arabic": false,
                        "portuguese": false
                    }
                    "email": "traveler@homeescape.com",
                    "member_type": "TRAVELER",
                    "member_since": "2017-08-02T13:13:09-0400",
                }
            
            

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!"
EC042 Traveler not found Traveler id doesn't match our records "Sorry, We couldn't find your information!"
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]