CheapOair affiliate program API

With the CheapOair API you can get a link to booking a flight ticket.

Introduction

Before you start working with CheapOair API you need to register in the Travelpayouts affiliate network and join the CheapOair program. After that send a request to our support team to access the API.

To work with the API you will be given: UserID, Password, WUID, AffiliateID.

You can find documentation on working with the API here.

Steps with API

  1. Use the Search API Target and Method to send a search request.
  2. Take the values of the Contract Locator Key (CntKey), Contract IDs (CNT ID) parameters received in response to the first request and the WUID, AffiliateID provided by our support team. 
  3. Create a link in the form https://www.cheapoair.com/fpnext/RemoteSearch/Get?bk=FPWB&wuid=XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX&ck=XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX&cid=X&t=f&fpaffiliate=XXXX, where wuid is WUID, ck is CntKey, cid is CNT ID, fpaffiliate is AffiliateID.
    The decryption of other parameters can be found in the documentation and scheme.
  4. Use the link generator to turn the link obtained in step three into a Travelpayouts affiliate link.
    Tip: you can automatically generate affiliate links by url-encoding the links from the third step to bring them to the required format, and pass the link to the u parameter:
    https://tp.media/r?marker=тут_будет_ваш_маркер&p=тут_числа&u=https%3A%2F%2Fwww.cheapoair.com%2Ffpnext%2FRemoteSearch%2FGet%3Fbk%3DFPWB%26wuid%3DXXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX%26ck%3DXXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX%26cid%3DX%26t%3Df%26fpaffiliate%3DXXXX
  5. After user click on an affiliate link and booking an flight ticket, you will get revenue in your affiliate account in Travelpayouts.

Was this article helpful?

Have more questions? Submit a request