Service

Name Get Owner Policies
Description Get the policies of the owner
Method GET
URL /owner/policies
Example /api/owner/policies
Access OWNER, MANAGER

HTTP Headers

Authorization eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9...

Parameters

Fields Type Required Description

Response

            
                {
                    "main_policy": false,
                    "cancellation_policy": "Flexible",
                    "cancellation_policy_additional": "Please cancel before at ...",
                    "max_stay": "5",
                    "check_in_hour": "13",
                    "check_out_hour": "12",
                    "type_payment": 1,
                    "first_payment": 25,
                    "second_payment": 75,
                    "due_date": 7,
                    "deposit_requirements": "null",
                    "damage_deposit_hold": false,
                    "damage_deposit_hold_days": "null",                    
                    "house_rules": "null"
                }
            
            

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!"
EC004 Not found result There are problems finding the data in our database [Paint the form without information] - "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]