Name | Delete Owner Traveler |
---|---|
Description | Delete a traveler to the list of travelers hosted at the owner's properties |
Method | DELETE |
URL | /owner/travelers/{traveler} |
Example | /api/owner/travelers/{traveler} | Access | OWNER, MANAGER |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|---|---|---|
traveler | number | yes | Id of the owner's traveler that will be removed from the list |
{
"code": "R111",
"message": "Success"
}
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 that traveler!" |
R000 |
Fail |
The owner's traveler wasn't deleted | |
R111 |
Success |
The operation was successful | [Update the traveler's list, hide loading icon] |
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] |
VID109 |
Invalid input for traveler |
Traveler id doesn't have only numbers | "Sorry, We couldn't find that traveler!" |