Smoobu 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
Smoobu API
Smoobu is the All-in-One software for Short-Term & Vacation Rentals. Smoobu syncs all your booking portals, such as Airbnb, Booking.com, VRBO, Trip.com, Agoda etc, automatically, so you no longer need to worry about double booking and manual prices.
2. Portal
Add Listings
Add Calendar / Availability
Add Reservations
Cancel Reservations
- Booking can be cancelled from this icon.
- It can also be discard by opening the booking and clicking cross icon.
Booking Engine:
3. API Integration
Credentials Required
- API Key
- Channel ID ( For creating booking on portal )
API Key is required for getting response of all requests.
Endpoints
API Doc: https://docs.smoobu.com/#introduction/
- GET Listings https://login.smoobu.com/api/apartments
- GET Single Listing
https://login.smoobu.com/api/apartments/apartmentId
- GET Prices & Availability
https://login.smoobu.com/api/rates?apartments[]=805998&start_date=2021-11-10&end_date=2022-11-10
- Create Reservation
https://login.smoobu.com/api/reservations
- Cancel Reservation
https://login.smoobu.com/api/reservations/<reservationId>
Missing data
- No listing description
- No listing Photos
- Amenities are coming for some listings and some are empty
- No cleaning fee
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\smoobu\assets\js\smoobu.js
- plugin\smoobu\smoobu.php
6. Gateways
Stripe
Changes regarding stripe to Smoobu reservation are in the following files.
- theme\homey-child\template-parts\instance-booking\nightly.php
- plugin\smoobu\smoobu.php
- plugin\smoobu\assets\js\smoobu.js
- plugin\smoobu\classes\class-stripe.php
Homey theme settings to enable / disable Stripe gateway
7. Code
Child Theme
Path: theme\homey-child
API Plugin
Path: plugin\smoobu