Search, Quote and Book

On this page you will learn about the Transactional Booking Flow to Search, Quote and Confirm a reservation. You will also be able to see the difference between the Search Single Mode VS Search Multi Mode. In this sense, you can find the necessary access codes used by using the admin-query

Search Single Mode

This mode is used when the client only wants to receive options from a single access. In this case, the client should indicate in the request the access code they want to use within the filter access - You can find a sample here:

{

  "filter": {

    "access": {

      "includes": ["yourAccess"]

    }

  }

}

Search Multi-Mode

If you don’t apply any filters in the request and you have permissions for multi-mode, the Search is multi-ode. By default, the request is run for all the accesses that you have configured in the product, if you want to apply some filters, you should use the filter and indicate the rules that you want to apply. Is important to know that you can only use “includes” or “excludes” in the same request, but never both in the same request.

Includes Sample

{

  "filter": {

    "access": {

      "includes": ["yourAccess","yourAccess2"]

    }

  }

}

Excludes Sample

{

  "filter": {

    "access": {

      "excludes": ["yourAccess"]

    }

  }

}

Comments