Single Mode & Multi Mode

Search Multi Mode is one of the main features of Hotel-X.

Search Single Mode

This mode is used when the client only wants to get options from a single access, for this, the client must indicate in the request the code of the access that they want to use. In the request have to use the access filter.

{

  "filterSearch": {

    "access": {

      "includes": ["yourAccess"]

    }

  }

}

Search Multi Mode

If you don’t have any filter in the request and you have permissions for multimode, the request run for all accesses that you have configured in the product. If you want to apply some filter, you have to use the filterSearch and to indicate the rules that you want. Is important to know that you only can use includes or excludes in the same request, but never both in the same request.

Includes Sample

{

  "filterSearch": {

    "access": {

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

    }

  }

}

Excludes Sample

{

  "filterSearch": {

    "access": {

      "excludes": ["yourAccess"]

    }

  }

}