---
title: Affiliate API
description: "*Tourfic Settings > Affiliate Settings* This section is where you can integrate your affiliate accounts from sites like Booking.com and TravelPayout. By putting their listing on your website, you can earn commissions.   *Note that Tourfic currently offers affiliate support for…"
url: "https://tourfic.com/docs/tourfic/settings/affiliate/"
updated: "2026-04-08"
category: Tourfic / Tourfic Settings
---

# Affiliate API

*Tourfic Settings > Affiliate Settings*

This section is where you can integrate your affiliate accounts from sites like Booking.com and TravelPayout. By putting their listing on your website, you can earn commissions.  

*Note that Tourfic currently offers affiliate support for only these two services, with more to come soon.*

## **Affiliate Integration -- Booking.com**

This tab integrates booking.com with your website. 

- Once you have enabled the integration (1), you can move on to create a custom label for it. 
- The important portion is adding your **Affiliate ID**.
- Booking.com provides its partners with unique affiliate IDs to track their bookings and commissions.
- You can visit your booking.com account and extract your affiliate ID from [there](https://www.booking.com/affiliate-program/v2/index.html).

---

### Show search form for booking.com

**This shortcode works with the Tourfic Pro version only.**

```
[tf_search type="booking" ]
```

---

## Affiliate Integration -- **TravelPayouts**

This section is for your affiliate integration with TravelPayouts. 

1. First, you'll have to enable it through the **enable TravelPayouts integration**toggle. 
2. TravelPayouts offers separate services for hotels and flights. If you want to enable TravelPayouts Flight, turn the toggle on. 
3. If Flight is turned on, you'll now have to add a label to it. 
4. You can turn on TravelPayouts Hotel with this toggle. 
5. Similarly, you'll have to add a Hotel Label if the Hotel affiliation integration is turned on. 
6. Next, you'll have to put in your **Marketer**or**Affiliate ID** from TravelPayouts. Visit your TravelPayouts account and copy your ID from [there](https://www.travelpayouts.com/programs/100/tools/api). 
7. If you want to use TravelPayouts' **White Label services** for your website, turn this toggle on.

### Show search form for Travelpayout

**This shortcode works with the Tourfic Pro version only.**

```
[tf_search type="tp-hotel,tp-flight" ]
```

![Tourfic API TravelPayouts settings 1024x621 1](https://tourfic.com/wp-content/uploads/2026/03/Tourfic-API-TravelPayouts-settings-1024x621-1.webp)

## Video Tutorial

[YouTube video player](https://www.youtube.com/embed/TytBPjvX5iQ)
