How to Create Affiliate Search Form with Travelpayouts?

Travelpayouts is a platform that connects travelers, content creators, and travel companies to make everyone’s trips more fun. It helps travel companies promote their services, lets content creators earn commissions by promoting those services, and rewards travelers with personalized travel suggestions, exclusive deals, and cashback.

If you don’t have an account, kindly create your TravelPayouts account

1. Get Travelpayouts ID

Logged-in your Travelpayouts account and copy the ID from the bottom-left corner, such as 326912

The default language is English, and the default currency is USD. These cannot be changed unless you use TravelPayouts WhiteLabel.

Paste your ID into Theme Options > Affiliate Configure > Travelpayouts > TravelPayouts ID 

2. Setup WhiteLable

Travelpayouts has a tool called “White Label” that lets you change the look of the travel search engine on your website and put your own name on it. 

If you have TravelPayouts WhiteLabel, the search results will be displayed on a subdomain of your website. You can set it up by navigating to Theme Settings > Affiliate Configure > TravelPayouts > Use Whitelabel.

If you do not have TravelPayouts WhiteLabel, the search form will redirect to the TravelPayouts search page. In this case, skip Section 2(Setup WhiteLable) and proceed to Section 3(Setup Search Form)

2.1. Create TravelPayouts WhiteLabel subdomain

  • To get started, you need to create a CNAME Record for your domain in your hosting’s DNS settings. Your White Label subdomain will typically be something like search.yourdomain.com.
  • In the DNS settings, set the CNAME Record to point to whitelabel.travelpayouts.com and make sure to set up SSL. The setup process may look slightly different if you do not use Cloudflare Nameserver, but the general steps remain the same.
Travelpayouts Image 3
  • Go to Travelpayouts and log in to your accounts, click the Tools on the sidebar
Travelpayouts Image 9
  • Next, choose the White Label to create a new affiliate program
Travelpayouts Image 10
  • Scroll down to select the Hotellook and click to the Tools 
  • Then, click to White Label to create a new one. Or you can click this link 
Travelpayouts Image 13
  • Insert your sub-domain on the Domain tab and change the color background of the sub-domain on the Colors tab. You can also set the default language and default currency.
Travelpayouts Image 14.1
  • Click Save and Updates when finished

2.2. Create TravelPayout Search Result Page

In the WPAdmin, select Page > Add New to create a new page for TravelPayout Search Result. Select page template TravelPayout Search Result and publish your page.

Travelpayouts Image 4

2.3. Setup Theme Options

Go to Theme Options > Affiliate Configure > TravelPayouts > Use Whitelabel set ON then input your Whitelabel Subdomain (from 2.1) and select your Whitelabel Page Search (from step 2.2)

3. Setup Search Form

Finally, you have to choose Travelpayouts service on the search form.

For Elementor Demo, you need to edit the search form on your home page and enter “Travelpayout” in Choose Service field. 

Travelpayouts Image 6

For WPBakery Demo, you also need to edit the search form on your home page. Go to Page > All Page> Home and edit ST Search Form elements.

To add Travelpayouts service, you choose Services is Travelpayouts and Save Changes

Travelpayouts Image 8

4. Troubleshooting

Attention! If you send a request without a token, the number of queries will be limited. The values of restrictions are passed in the response header:

  • X-Ratelimit-Interval — limit interval in seconds
  • X-Ratelimit-Remaining — how many requests are left of this limit
  • X-Ratelimit-Limit — the value limit

https://support.travelpayouts.com/hc/en-us/articles/115000343268-Hotels-data-API

$79