CheapOair affiliate program API
With the CheapOair API you can get a link to booking a flight ticket.
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
- Use the Search API Target and Method to send a search request.
- 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.
- 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.
- 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:
- 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