Link Search Menu Expand Document

Property Descriptions

Table of Contents
  1. SDK Initialisation Parameters
  2. Initialising CTContext for In Path Grid View

SDK Initialisation Parameters

style
An optional CTStyle object, used to set the fonts as well as the primary and secondary colors in the SDK.

Please ensure any custom fonts used are included in your main bundle.

Initialising CTContext for In Path Grid View

To initialise the In Path flow, it is necessary to instantiate a CTContext and CTFlighDetails objects.

ParameterDescriptionExampleType
implementationID[Required] An implementation ID, provided by CarTrawler and required to fetch the partner configuration.9f3e1d7c-3e44-49f2-b1c9-ra4e7c2f59bString
clientID[Required] A client ID, required to use the CarTrawler API.564488Integer
flow[Required] The flow to be launched. Must be .inPath.inPathEnum
countryCodeA country code, such as “US”. Default is the device location if not provided.IEString
currencyCodeA currency code, based on the ISO standard currency codes e.g “USD”. The currency associated with the device’s system region is used by default.EURString
languageCodeA language code to switch between languages. Default is “EN” if not provided.EconomyString
flightDetails[Required] The flight detailsCTFlightDetails()CT Object.

CTFlightDetails object:

ParameterDescriptionExampleType
flightOrigin[Required] Origin flight details separated by pipes: IATA departure, IATA arrival, datetime departure, datetime arrival, flight number.DUB|LHR|2025-01-16T06:05:00|2025-01-16T07:25:00|XX8719String
flightReturn[Required] (return flights only) Return flight details separated by pipes: IATA departure, IATA arrival, datetime departure, datetime arrival, flight number.LHR|DUB|2025-01-22T21:20:00|2025-01-23T22:45:00|XX8720String
passengerBreakdownBreakdown of Adults, Teens, Children and InfantsCTFlightPassengerBreakdown(adults: 2, teens: 0, children: 0, infants: 0)CT Object
firstNameFirst name of the customer.JohnString
surNameSurname of the customer.DoeString
customerEmailEmail address of the customer.john.doe@example.comString
fareClassFlight class selected by the customer. Map to values like economy, business, etc.businessString
flightFareTotal price of the flight fare in the selected currency.175.95Double
bagsNumber of extra bags added by the customer.1UInt
loyaltyNumberLoyalty program membership ID, if applicable.ABC123456String
loyaltyTierLoyalty program tier name, if applicable.goldString
contextWhere in the flow the grid view is loaded. IN_PATH or CONFIRMATIONIN_PATHString