Synchronization of Traveler Information
From the External Platform to the Shopping Cart
Users that are using the Widget (Expedia/Simple) can send passenger information via URL.
The URL must contain a “travellerInfo” parameter of the typed string.
“travellerInfo” is a string obtained by converting a JSON object to Base64 format.
A JSON object is an object that contains real information about the traveler.
The contents of the JSON object are shown in the next table.
Example:
{ "Title": "Mr",
"TypeCode": "ADT",
"FirstName": "Djordje",
"MiddleName": "Djole",
"LastName": "Jovanovic",
"EmailAddress": "djordje@thomalex.com",
"DateOfBirth": "1980-05-05",
"Gender": 1,
"PhoneNumber": "1212121",
"PhoneNumberCountryCode": 123,
"Passports": [ { "PassportNumber": "A109321",
"PassportExpireDate": "2028-08-19",
"PassportIssueDate": "1975-08-19",
"PassportIssueCountryCode": "RS",
"PassportNationalityCountryCode": "RS" } ]
}
A correctly written JSON object (example shown above) should be converted to Base64 format.
The newly received string is passed to the URL generated when the Widget is displayed.
Follow the presented flow below:
FROM:
TO:
The widget URL looks like this:
After the search, all entered data will be displayed on the shopping cart: