Learn how to create links to the White Label search form with pre-filled fields.
When working with White Label, you can create a link to the search form with already filled-in fields. Such links are convenient because users do not need to spend time filling out the form, they can go straight to booking.
To create such a link:
1. Take the address of your White Label and add /flights/ to it: AddressOfYourWhiteLabel/flights/
2. Add the parameters from the table below to the address. Please note that the first parameter is added to the address using the "?" question mark character, and all the others using the "&" character.
For example, take the address of your White Label and add to it /flights/?Origin_iata=BCN&destination_iata=LAX. When clicking through the link, the user enters to the search form with the filled-in points of departure and destination.
Parameters
Name | Description | Default value |
origin_iata | Departure city. Recommended values: "IATA code for city". | MOW |
destination_iata | Arrival city. Recommended values: "IATA code for city". | LED |
depart_date | Departure date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). | - |
return_date | Return date. Recommended format: "Y-m-d" ("yy-mm-dd" for JQuery). | - |
oneway | “One way only” check box, equal to 1 or 0. | 0 |
adults | Number of adults (over 12 years old) | 1 |
children | Number of children (2 to 12 years old) | 0 |
infants | Number of infants (0 to 2 years old) | 0 |
trip_class | Ticket class (Economy: 0, Business: 1) | 0 |
currency | Currency of search result (RUB, USD, EUR, UAH, CNY, KZT, AZN, BYN, THB, KGS, UZS) | USD |
with_request | Initiate search automatically (true: the search is loaded, false: the form is filled out but the search does not start) | false |
marker | Your partner ID | - |
Note:
-
adults/children/infants – number of adults, children, and infants – numbers.
Up to nine seat-occupying passengers (adults + children) can be added in a single query. Infants travel without their own seats and are carried by adults. The number of infants cannot exceed the number of adults. If the number of infants is larger than the number of adults, the excess number of infants is counted as children (with their own seats).