Skip to content

Create Session From Gordian Trip

For partners that already have an integration with Gordian's Core API, integrating White Label's postbooking session is very simple! If you already have a Gordian Trip created and have an accompanying trip_id for the trip for which you wish to add ancillaries post-booking with White Label, you need not provide the itinerary and passenger details again! You can simply pass us the trip_id and we will do the rest!

To create a session using this method, a post request is to be made to the following endpoint:




Authentication uses Basic Auth Format with the provided API key as username and an empty password

We will initially provide a sandbox API key for you to be able to test our endpoints. When using this sandbox API key, entire End-to-End fulfillment tests can be performed without actual fulfillment of ancillaries. Production API key will only be given after successful integration of White Label. Check the following Integration Protocol documentation for more information:

URL Params


  1. trip_id : The trip_id of the trip for which you wish to add ancillaries post-booking required

Request Body

We require the following information to be present in the request body under the indicated keys:

  1. partner_url_id : The Partner_url_id that helps us identify where this request is coming from required
  2. booking_id : An unique id that can help you differentiate between the different bookings you manage optional


If provided, the resultant session_id is a function of the partner_id that we provide you and the booking_id (See below for more information). This saves you the hassle of having to manage another session_id in your databases.

Sample Request Body:

    "partner_url_id": "b5b978d7-19ab-4638-b596-f5cef08a1433", 
    "booking_id": "123456789ff1"    

Sample Response:

If done correctly, calling this endpoint will return the following data:

    "url": "<BASE64_encoded_session_id>"

The BASE64_encoded_session_id appended to the back of the base URL can be decoded to obtain the session id corresponding to the particular trip in question. Below we have the python code example to specify how to do that.

import base64

def base64_decode(data: str):
    return base64.urlsafe_b64decode(bytes(data, "utf-8")).decode("utf-8")

The decoded session_id will then take on the following form:

  • if a booking id was provided:

    • session_id = {partner_id}_{booking_id}
  • if a booking id was not provided:

    • session_id = {partner_id}_{GORDIAN_UUID}

As an example, if the partner_id we provided you with is : a77da86a-d70e-42a2-83b8-2358f4d7e1c3 and you provided us with a booking_id of 12345678, the resultant session_id is a77da86a-d70e-42a2-83b8-2358f4d7e1c3_12345678

Encoded url_safe encoded session_id

We expect the session_id to be encoded in the url safe base64 encoding scheme when making subsequent requests to other endpoints where the session_id is required. An error will be thrown otherwise.