YourPorter 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
Your Porter API
Your Porter App is a great tool to manage everyday work! Having all the information stored in one place is such a time saver. Moreover, the synchronization of calendars in real-time is beyond great.
2. Portal
Add Listings
Add Calendar / Availability
Add Reservations
Cancel Reservations
- Reservation can be cancelled by clicking on delete reservation button.
- For Authorization token need to contact with Your Porter support after that it will be provided for getting responses from all endpoints.
3. API Integration
Credentials Required
- Authorization Token
Authorization token is required for getting response of all requests.
Endpoints
API Doc: https://documenter.getpostman.com/view/3446982/T17Dgp9t#intro
- GET Single Listing
https://api.yourporter.com/external/v1/listings/get?listing_id=2f5c2804-c724-4b1f-b6a7-de97b730f969
- GET Prices & Availability
Missing data
- No listing Description
- No listing Photos
- No listing Amenities
- No Property Type
- No create reservation endpoint
- No cancel reservation endpoint
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\your-porter\assets\js\your-porter.js
- plugin\your-porter\your-porter.php
6. Gateways
Stripe
Changes regarding stripe to Your Porter reservation are in the following files.
- theme\homey-child\template-parts\instance-booking\nightly.php
- plugin\your-porter\your-porter.php
- plugin\your-porter\assets\js\your-porter.js
- plugin\your-porter\classes\class-stripe.php
Homey theme settings to enable / disable Stripe gateway
7. Code
Child Theme
Path: theme\homey-child
API Plugin
Path: plugin\your-porter