Welcome to the Python SDK that enables you to communicate with all that the Wink Travel Platform has to offer.
This SDK contains libraries you can leverage to communicate with the Wink platform.
Python 3.8+
Download libraries from PyPi.
The Affiliate API exposes endpoints to manage affiliate accounts. This API lets you:
- Create affiliates.
- Create account managers.
- AffiliateApi: Create affiliates.
- AccountManagerApi: Create account managers.
You can install the package from PyPi using:
pip install wink_sdk_affiliate
The Affiliate Browse API exposes endpoints for affiliates to browse inventory. This API lets you:
- Browse suppliers and inventory.
- Retrieve categories to search for.
- Manage curated lists.
- Manage saved searches.
- BrowseApi: Browse suppliers and invnentory.
- CuratedListApi: Manage curated lists.
- SavedSearchApi: Manage saved searches.
- SearchCategoriesApi: Retrieve categories to search for.
You can install the package from PyPi using:
pip install wink_sdk_affiliate_browse
The Affiliate Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. This API lets you:
- Manage customizations.
- Manage shareable supplier / inventory links.
- Manage individual inventory items.
- Manage curated / saved searches / ranked grids.
- Manage maps.
- CustomizationApi: Manage customizations.
- EmbeddableInventoriesApi: Mostly used by our Web Components to retrieve available inventory to embed
- ItemsApi: Manage individual inventory items.
- GridsApi: Manage curated + saved searches grids.
- MapsApi: Manage maps.
- InventoryLinksApi: Manage shareable inventory links.
- RankedGridsApi: Manage ranked grids.
- SupplierLinksApi: Manage shareable supplier links.
You can install the package from PyPi using:
pip install wink_sdk_affiliate_inventory
The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. This API lets you:
- Sales Channel: Manage existing sales channels.
- Relationship Request: Manage relationship requests.
- Available Supplier: Browse available suppliers to connect with.
- AvailableSupplierApi: Browse available suppliers to connect with.
- RelationshipRequestApi: Manage relationship requests.
- SalesChannelApi: Manage existing sales channels.
You can install the package from PyPi using:
pip install wink_sdk_affiliate_sales_channel
The WinkLinks API exposes endpoints to manage WinkLink entries, categories and settings. This API lets you:
- Entries: Manage WinkLinks entries.
- Categories: Manage WinkLinks tags.
- Settings: Configure WinkLinks account.
- SyndicationPublisherApi: Manage your WinkLinks account
You can install the package from PyPi using:
pip install wink_sdk_affiliate_winklinks
The Analytics API gives you access to time series data on a variety of data sources to measure bookings and insights on properties, affiliates and traveler data.
- AnalyticsApi: Create analytics that is meaningful to you. We provide the filters, sorting mechanisms and data points you need to track everything you want on our platform.
- LeaderboardApi: Track where you stand compared to other affiliates. The metric is bookings.
You can install the package from PyPi using:
pip install wink_sdk_analytics
Welcome to the Booking Engine API - A programmer-friendly way to book inventory that was found on our platform. This API lets you:
- Shopping Cart: Manage shopping cart.
- Checkout: Move shopping cart items through the payment workflow.
- Booking: Move selected inventory through to booking completion.
- Review: Leave a review after a completed stay.
- ShoppingCartApi: Manage shopping cart.
- CheckoutApi: Move shopping cart items through the payment workflow.
- BookingApi: Manage bookings.
- ReviewApi: Leave a review after a completed stay.
You can install the package from PyPi using:
pip install wink_sdk_booking
The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties.
- ChannelManagerApi: Everything related to pushing rates and availability as well as querying properties managed by your channel manager account with us.
You can install the package from PyPi using:
pip install wink_sdk_channel_manager
A single endpoint to retrieve affiliate information needed to display the booking engine.
- ConfigurationApi: Load affiliate information
You can install the package from PyPi using:
pip install wink_sdk_engine_client
The Booking API exposes endpoints to manage bookings. This API lets you:
- Booking: Manage bookings including cancellations.
- Review: Manage and respond to user reviews.
- Sync w. Calendar: Manage calendar sync with your favorite calendar software.
- BookingApi: Manage bookings including cancellations.
- ReviewApi: Manage and respond to user reviews.
- CalendarSyncApi: Sync w. Calendar: Manage calendar sync with your favorite calendar software.
You can install the package from PyPi using:
pip install wink_sdk_extranet_booking
The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. This API lets you:
- Verifier: Test your availability and promotions and create test bookings to simulate the entire booking workflow.
- Sales Channels: Manage your sales channels.
- Explore Network: Find new affiliates to work with.
- Inventory: Manage inventory at the sales channel-level.
- Calendars: Manage availability calendars for all your inventory.
- AffiliateApi: Browse affiliates.
- DailyRateApi: Manage room type / rate plan rates
- InventoryApi: Manage inventory at the sales channel-level.
- InventoryUsageApi: Track current inventory usage.
- SalesChannelApi: Manage sales channels.
- SchedulerApi: Manage availability for all non-room type inventory.
- SalesChannelRelationshipRequestsApi: Manage affiliate relationship requests.
You can install the package from PyPi using:
pip install wink_sdk_extranet_distribution
This part of the documentation concerns itself with the management of experiences, on and off the property. This API lets you create:
- Activities: Manage activities on and off the premises.
- Attractions: Manage attractions on and off the premises.
- Places: Manage places on and off the premises.
- ActivityApi: Manage activities on and off the premises.
- AttractionApi: Manage attractions on and off the premises.
- PlaceApi: Manage places on and off the premises.
You can install the package from PyPi using:
pip install wink_sdk_extranet_experiences
This part of the documentation concerns itself with the management of facilities, on and off the property. This API lets you create:
- Guest room: Manage room types on and off the premises.
- Meeting room: Manage meeting rooms on and off the premises.
- Restaurant: Manage restaurants on and off the premises.
- Spa: Manage spas on and off the premises.
- GuestRoomApi: Manage room types on and off the premises.
- MeetingRoomApi: Manage meeting rooms on and off the premises.
- RestaurantApi: Manage restaurants on and off the premises.
- SpaApi: Manage spas on and off the premises.
You can install the package from PyPi using:
pip install wink_sdk_extranet_facilities
This part of the documentation concerns itself with the management of cancellation policies, promotions, restrictions etc. This API lets you create:
- Add-ons: Manage add-ons.
- Cancellation policies: Manage cancellation policies for your property.
- Master rates: Manage perks for room type / rate plan combos.
- Promotions: Manage promotions.
- Promotion bundle: Manage bundled promotions.
- Rate plan: Manage rate plans.
- AddOnApi: Manage add-ons.
- CancellationPolicyApi: Manage cancellation policies for your property.
- MasterRateApi: Manage perks for room type / rate plan combos.
- PromotionApi: Manage promotions.
- PromotionBundleApi: Manage bundled promotions.
- RatePlanApi: Manage rate plans.
You can install the package from PyPi using:
pip install wink_sdk_extranet_monetize
This part of the documentation concerns itself with basic property management. It can:
- Property: List existing properties. Manage property status. Change name and similar.
- Notification: Read internal messages sent from Wink to your properties.
- Announcement: Show pertinent messages to travelers in a pop-up window.
- Geo-Location: Set property geo-location.
- Green Index: Answer eco-related questions regarding the property's recycling practices and much more.
- Lifestyles: Manage lifestyles the property caters to.
- Photos / Videos: Manage property media.
- Policy: Manage property policy. I.e. Children, pets, wi-fi, parking etc.
- Reputation: Manage awards, online / offline ratings etc.
- Services: Manage property amenities.
- Social media: Manage property social media networks.
- Welcome text: Manage property descriptions
- AnnouncementApi: Manage announcements to travelers in a pop-up window.
- ChannelManagerApi: Set channel manager
- GeoLocationApi: Set property geo-location.
- LifestyleApi: Manage lifestyles the property caters to.
- MediaApi: Manage property media.
- PolicyApi: Manage property policy. I.e. Children, pets, wi-fi, parking etc.
- PropertyApi: List existing properties. Manage property status. Change name and similar.
- RecognitionApi: Manage awards, online / offline ratings etc.
- SocialNetworkApi: Manage property social media networks.
You can install the package from PyPi using:
pip install wink_sdk_extranet_property
This part of the documentation concerns itself about adding new properties to Wink. There are two endpoints for you to onboard a property:
- Manage leads.
- Manually: Use this endpoint if you already have all the property data. Use case: You want to migrate your existing properties to Wink.
- Intelligently: With the assistance of Google Business Pages, you can select an existing property on Google, ingest it with the lead endpoint and let us create a Wink property for you. Note: This isn't always straightforward in places with non-standard addresses.
- ManageLeadsApi: Manage leads.
- PropertyRegistrationApi: Create properties.
You can install the package from PyPi using:
pip install wink_sdk_extranet_property_register
The Inventory API exposes endpoints to retrieve inventory you already know about. This API lets you:
- Consume shareable links.
- Load up a known property with availability.
- Load up all inventories that were created by our affiliates such as grids, maps, and individual items.
- InventoryApi: Everything related to querying property availability.
- ShareableLinkApi: Consume shareable links.
You can install the package from PyPi using:
pip install wink_sdk_inventory
The Lookup API exposes endpoints to search for inventory by region, type. It's the entryway to bookable inventory when you don't yet know what you are looking for.
- LookupApi: Everything related to querying for best priced room types using various filter mechanisms
You can install the package from PyPi using:
pip install wink_sdk_lookup
The Notifications API is a way for us to stay in touch with your user, property or affiliate account.
- NotificationApi: Retrieve platform notifications.
You can install the package from PyPi using:
pip install wink_sdk_notification
Easy way to test your credentials.
- PingApi: Test connection with Wink.
You can install the package from PyPi using:
pip install wink_sdk_ping
The Reference API exposes endpoints related to supported taxonomies of reference data that this platform supports.
- GeoDataApi: Find geo-name lookup data from geonames.org.
- ReferenceApi: Everything related to structured datasets and their meaning. E.g. OTA Room View Code list
You can install the package from PyPi using:
pip install wink_sdk_reference
The Travel Agent API exposes endpoints to manage agent-facilitated bookings. This API lets you:
- Travel Agent: Manage agent entity.
- Booking: Create / Manage bookings
- TravelAgentApi: Create agents and manage bookings.
You can install the package from PyPi using:
pip install wink_sdk_travel_agent
The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. This API lets you:
- Application: Manage 3rd party access to Wink.
- Bucket List: Manage your bucket list on Wink.
- User: Manage user settings.
- Webhook: Subscribe to receive Wink events as they occur in realtime.
- ApplicationApi: Manage 3rd party access to Wink.
- BucketListApi: Manage your bucket list on Wink.
- UserSettingsApi: Manage user settings.
- WebhookApi: Subscribe to receive Wink events as they occur in realtime.
You can install the package from PyPi using:
pip install wink_sdk_user_settings
You will need a client ID and a client secret to communicate with any of the Wink platform endpoints. You can create your account and get your credentials here:
Steps:
- Register your personal user account
- Log in
- Create your first account
- Select that account
- Choose to create an Application for that account
- The application will hold your credentials
Using the client ID and client secret, you can create the OAUTH2 access token. Instructions to create the access token you can find in the API docs Authentication section, eg. https://docs.wink.travel/affiliate
Create the access token environment variable in your preferred way:
- ACCESS_TOKEN=YOUR_ACCESS_TOKEN
- TripPay Python SDK Repo: https://github.com/wink-travel/trip-pay-sdk-python
- WordPress: https://wordpress.org/plugins/wink2travel/