Hostaway API Documentation
Instructions:
- Document will have portal, plugin settings, each, and everything to setup
- The basic setup instructions for each PMS, any settings to amend in the portal, what is pulled, what can be changed, any maintenance, etc.
- In a word format and tom can then create it on site as a docs
- We might need to use screenshots as well
Index:
- Introduction
- Portal
- Add Listings
- Add Calendar / Availability
- Add Reservations
- Cancel Reservations
- API Integration
- Credentials Required
- Endpoints
- All listings
- Single listing
- Reservations (Create/Cancel)
- Prices (Extra guest fee, daily price, Taxes, Discounts)
- Availability (Min stay, Available)
- Missing Endpoints
- Manual sync all or single listing
- Auto Sync settings
- Website Settings
- Plugin Settings
- Overriding
- Cronjobs (Enable/Disable)
- Customization
- Auto Registration
- Path of files for custom code.
- Gateways
- Stripe
- Options on theme settings
- Path of files for custom code.
- Code
- Child Theme.
- API Plugin.
1. Introduction
Hostaway API
Hostaway helps you grow your property management business by automating and streamlining every aspect of your business.
2. Portal
Add Listings
Add Calendar / Availability
Add Reservations
Cancel Reservations
Booking Engine:
- API key created from here.
3. API Integration
Credentials Required
- Client ID ( Account Id used as client id )
- Client Secret ( API key used as client secret )
- Channel ID ( For creating booking on portal )
Client ID & Client secret are required to GET Token for all requests.
Endpoints
API Doc: https://api.hostaway.com/documentation/
- Get Token
https://booking.guesty.com/oauth2/token
- GET Listings https://api.hostaway.com/v1/listings
- GET Single Listing
https://api.hostaway.com/v1/listings/listingId
- GET Property Types
https://api.hostaway.com/v1/propertyTypes
- GET Prices & Availability
https://api.hostaway.com/v1/listings/40160/calendar?startDate=2018-09-01&endDate=2018-09-30
- Create Reservation
https://api.hostaway.com/v1/reservations?forceOverbooking=1
- Cancel Reservation
https://api.hostaway.com/v1/reservations/{reservationId}/statuses/cancelled
Missing data
- All data is coming from API
Manual sync options
- All Data sync
- Single listing sync (Go single listing edit page)
Auto Sync Settings
- Plugin Setting page (Go to Listings > Settings)
- View existing auto schedules
- Can enable/Disable each auto sync by clicking checkbox under Action Column.
4. Website Settings
Plugin Settings
- Plugin Setting page (Go to Listings > Settings)
- Enter required API credentials
- Override options
- You can enable / disable override settings for API data.
- Can view and enable/disable Auto Syncs.
5. Customization
Auto Registration
Changes for auto registrations module are in following files.
- homey-child\template-parts\boostly-modal-register.php
- homey-child\template-parts\instance-booking\nightly.php
- plugin\hostaway\assets\js\hostaway.js
- plugin\hostaway\hostaway.php
6. Gateways
Stripe
Changes regarding stripe to Hostaway reservation are in the following files.
- theme\homey-child\template-parts\instance-booking\nightly.php
- plugin\hostaway\hostaway.php
- plugin\hostaway\assets\js\hostaway.js
- plugin\hostaway\classes\class-stripe.php
Homey theme settings to enable / disable Stripe gateway
7. Code
Child Theme
Path: theme\homey-child
API Plugin
Path: plugin\hostaway