Checkout Redirection

Last updated: Mar 6th, 2018

Intro

Checkout redirection is used when you want to make the availability search requests in your own site and redirect to Onetourismo Booking Engine just for the checkout and payment.

It's pretty easy and consisted of just two steps.

  • Firstly, you make a Room Availability Call for the selected hotel as described in the api section (this one used as example below)
  • Then, you create the checkout link using the provided data

API Call

Make the request as described in the API section . You'll get the available rooms of the selected hotel with the following format


{
    "status": "success",
    "hotelOtag": "0041428",
    "results":
    {
        "rooms": [
        {
            "index": "0",
            "quantity": "1",
            "mealPlans": [
            {
                "code": "BB",
                "price": "100.00",
                "description": "bed_breakfast"
            }],
            "code": "STD",
            "id": "Double Standard",
            "type": "Double Standard"
        },
        {
            "index": "0",
            "quantity": "1",
            "mealPlans": [
            {
                "code": "BB",
                "price": "100.00",
                "description": "bed_breakfast"
            }],
            "code": "STD",
            "id": "Twin Standard",
            "type": "Twin Standard"
        }]
    },
}
  
                                        

In this step, you could show the returned rooms in your site and let the user select one (or more).

Let's assume that client wants to continue with the first room. Now, you have to create the checkout link and redirect the user to it.