Please note that this is a WeTravel Pro feature.
Many WeTravel clients use software systems such as CRMs, tour ERPs, custom databases, proposal builders, or accounting programs. Our public APIs automate data exchange between any number of these programs and WeTravel; use it to send data to or retrieve data from our platform.
What functionality do WeTravel's public APIs currently include?
Trip Builder API
Booking API
Transactions API
Payments API
Suppliers API
Greater detail on the endpoints for each of these APIs is detailed here.
How can I get started exploring WeTravel's public APIs?
In order to build the integration, you will first need an API token - a unique identifier that a website or software uses to access your WeTravel booking data. There are no extra charges for WeTravel Pro account holders, and it only takes a moment for you to generate a token on your WeTravel account.
Just go to your profile:
And scroll all the way down to Public API Integration:
Click on the "Generate API Key" button to get an API access token ("refresh token"). Please store your token in a safe place since it won't be visible in your WeTravel account.
The token you generate is not able to directly call the API, but can be used to retrieve the "access token". The new access token will be used to call the API.
The refresh token can be used an unlimited number of times to generate an access token.
Click on "Explore API Documentation" in order to access our public API documentation.
How can I set up webhooks?
After you have authenticated API Key, you will see a new section called "Webhooks" right below the "Public API Integration".
Before you ask, webhooks are one of the ways your online accounts can "speak" to each other and get notified automatically when something new happens. For example, WeTravel can notify your internal systems when a new payment is created, or a booking is updated.
Simply set the toggle to "Yes" in order to enable webhooks and click on the "Manage Webhooks" button, which will direct you to the new tab on your browser - Svix dashboard. This is where you will be able to manage the webhooks.
You can read more about WeTravel's API webhooks here and/or watch this short video:
Feel free to get in touch with us any time at info@wetravel.com - we will be happy to provide you with further assistance on how our public APIs can support your business needs!