1/28/2024 0 Comments Reservation keykey![]() This booking key will of course not be displayed to the customer, it is just required for Tour Operator API use when subsequently calling the Start New Booking API method. Step 2: TourCMS has redirected the customer back, we retrieve our key // Retrieve the new booking Key TourCMS has generated $redirect_url = $result->url->redirect_url $result = $tourcms->get_booking_redirect_url($url_data, $channel) Response URL is the page we use to receive the customer back Step 1: Call the API then redirect the customer to TourCMS // Create a new SimpleXMLElement to hold the url For groups of 10 or more, please fill out our group reservation inquiry form. This is a two step example, the first step calls the API and then redirects the customer to TourCMS, the second step will then accept the customer back once TourCMS has finished and process the querystring parameters it has added. This form is for overnight accommodations only. Parameters $customer_data SimpleXmlElement containing the URL we want TourCMS to send the customer to $channel ID number for the channel the booking is being made with Example PHP examples use the PHP Client Library with SimpleXML Description object get_booking_redirect_url ( SimpleXmlElement $url_data, int $channel ) Only for use by Tour Operators (mandatory step), not required when the API is being used by Marketplace Agents. Get a URL for use in retrieving a new booking key, ensures marketplace data (clicks, referrer) is maintained on the final booking / customer record. This process will ensure that TourCMS picks up any Marketplace affiliate/PPC tracking information previously stored in the users browser by retrieving a cookie and recording the details alongside the newly created booking key. So for example you may want to request a booking key once when a customer first enters a booking process and then store it in their session. Each new customer however will require their own key. The key is valid for 24 hours for that customer and there is no requirement to keep requesting the key from TourCMS within that 24 hour period. TourCMS processes the users cookie and redirects them back, the new booking key will be provided in the query string.Call the Get booking redirect API call detailed below, redirect the users browser to the URL that TourCMS returns.Obtaining a booking key in various situations Bookings on a public facing website You must obtain a booking key using the process detailed below, this enables the marketplace tracking to work correctly Booking assigned to a specific agent Use Search Agents to obtain a booking key that represents the agent Staff created booking not assigned to a specific agent Set the booking key to "NO_AGENT" Bookings on a public facing website Note this step is only required for Tour Operators (not Marketplace Agents). Home > support > API > Marketplace API > booking creation > get booking key Getting a new booking key
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |