Tourpaq Integration

The integration between Heyloyalty and Tourpaq makes it possible to automatically transfer members as well as booking and travel data from Tourpaq to Heyloyalty.

The integration is developed by Tourpaq and automatically synchronizes data once a day.

How the synchronization works

Every night, the integration retrieves the orders and bookings in Tourpaq that have been created or updated since the last synchronization.

The data is used for two purposes in Heyloyalty:

  1. Creating and updating members who have given permission to receive newsletters.
  2. Creating and updating tracking data with information about the customer's booking and trip.

Members

A customer is imported as a member in Heyloyalty if the customer is subscribed to the newsletter in Tourpaq.

This is determined based on the field:

customersInfo[0].newsLetter = true

When the condition is met, the following data is transferred:

Heyloyalty fieldTourpaq fieldDescription
emailcustomersInfo[0].emailThe customer's email address
firstnamecustomersInfo[0].firstNameThe customer's first name
lastnamecustomersInfo[0].lastNameThe customer's last name
source–Always set to TourPaq
permission_datebookingInfo.bookingDateThe booking date is used as the permission date

Booking and tracking data

The integration also transfers information about the customer's booking to Heyloyalty as tracking data.

The following fields are used:

Tracking fieldTourpaq fieldDescription
emailcustomersInfo[0].emailThe customer's email address
booking_idbookingInfo.bookingIdThe booking ID
arrivalnamegeneralInfo.arrivalNameName of the arrival/destination
booking_datebookingInfo.bookingDateDate of the booking
countrynamegeneralInfo.countryNameCountry
departureairportgeneralInfo.iataDepartureIATA code of the departure airport
departure_datebookingInfo.departureDateDeparture date
durationCalculated fieldNumber of days between departureDate and returnDate
hotelcodegeneralInfo.hotelCodeThe hotel's code
resortnamegeneralInfo.resortNameResort/destination
return_datebookingInfo.returnDateReturn date
roomtyperoomsInfo[0].codeThe code of the first room in the booking
salespersonbookingInfo.salesPersonSalesperson linked to the booking
statusbookingInfo.cancelledThe booking's status

Booking status

The status field is calculated from the value of bookingInfo.cancelled.

When:

bookingInfo.cancelled = false

the following is saved:

status = bought

When:

bookingInfo.cancelled = true

the following is saved:

status = cancelled

Since the integration retrieves bookings every night that have been updated since the last synchronization, a previously imported booking can, for example, change from bought to cancelled.

Special custom fields

The integration can contain a number of fields that are linked to special codes from Tourpaq. These will be custom fields, meaning fields unique to the individual customer.

The exact mapping between Tourpaq's codes and these fields is customer-specific. If you use them, they must be documented for your specific use case

Summary

The Tourpaq integration automatically ensures that relevant members and their booking data are transferred to Heyloyalty.

The synchronization happens once a day and covers new or changed bookings since the last synchronization. Customers with newsLetter = true can be imported as members, while the booking information is saved as tracking data and can be updated continuously, for example if a booking is cancelled.

Need Support?

If you have questions you can't find answers to here, you can always contact us at support@heyloyalty.com

Contact Support