Name | Get Owner Travelers |
---|---|
Description | Get the travelers hosted at the properties of the owner |
Method | GET |
URL | /owner/travelers[?page=1][&per_page=10] |
Example | /api/owner/travelers?page=1&per_page=10 | Access | OWNER, MANAGER |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|---|---|---|
page | number | no | It can be used to paginate the result. By default 0 returns all. |
per_page | number | no | It can be used to limit the result. By default 10 items per page. If page = 0, this field doesn't apply. |
{
"items_total": 1,
"items": [
{
"id": 17459,
"name": "Dev Traveler",
"email": "dev4@telxweb.com",
"phone": "null"
}
]
}
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!" |
EC004 |
Not found result |
There are problems finding the data in our database | "No Record Found" |
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] |
VID110 |
Invalid input for page |
Page is not a number | [Call the API again using a valid value for page] |
VID111 |
Invalid input for per_page |
Per_page is not a number | [Call the API again using a valid value for per_page] |