This guide is for companies operating travel sites such as car rentals, flight bookings etc. It shows how Talon.One can be used to provide loyalty programs and discounts. There are two steps to using Talon.One:
This allows campaigns in the rule engine to trigger effects based on the cart contents. E.g. we could create a campaign that adds a discount when a user orders a flight with total cart value higher than 2000 and with airline attribute of "AB":
The Talon.One rule engine will validate the code, and return either an acceptCoupon effect (and any other effects that were triggered), or a rejectCoupon effect indicating that the coupon was not valid.
["setDiscount", "$20 off all flights to Hawaii", 20]