GET Lowest Rate


GetLowestRate() gets the lowest rate available at a property for a given itinerary.  Many properties charge different rates depending on length of stay or number of adults, so this endpoint can give more exact rates than simply downloading the rates for a property

REQUEST


End Point
https://www.availabilityexchange.com/gateway/getlowestrate
Parameters
    business_id (64-bit integer)
    check_in (Date)
    check_out (Date)
    num_adults (int)

EXAMPLE REQUEST

>curl --user username:passkey
--url "https://www.availabilityexchange.com/gateway/getlowestrate?business_id=16609&check_in=2021-10-25 &check_out=2021-10-28&num_adults=2"

RESPONSE


response_errors
    See Response Errors
pricing_type
     The pricing type of the response provided
check_in
    The check in date of the itinerary
check_out
    The check out date of the itinerary
available
    Y or N if the itinerary is available for this property
base_rate
    The base rate for the itinerary
taxes
     Estimated taxes calculated for the itinerary
fees
     Estimated fees calculated for the itinerary
unit_id
    The ID of the unit calculated to have the lowest rate for the requested itinerary
booking_link (string)
    A link to the booking engine for this property for the queried itinerary
currency
     The three letter currency code for the property (USD)
occupancy
     The number of adults for the requested itinerary

EXAMPLE RESPONSE

{
    "pricing_type": "LowestRateForItinerary",
    "check_in": "2021-10-25",
    "check_out": "2021-10-28",
    "available": "Y",
    "base_rate": 465.0000,
    "taxes": 0.0,
    "fees": 0.0,
    "unit_id": 6150,
    "booking_link": "https://resnexus.com/resnexus/reserve/?ID=5801&startdate=10%2f25%2f2021&aeunit=cyRO876vLpl0plcANGn5",
    "currency": "USD",
    "occupancy": 2,
    "response_errors": []
}


Response Errors


200
    response_errors (list of strings)
       Unable to pull Booking Link for X
400
    business_id should be a long
    dates should be formatted 'YYYY-MM-dd'
    num_adults should be an int or omitted
401
  • This site requires a secure connection over HTTPS
  • The credentials supplied are incorrect or you do not have access to this resource
500
    Something went wrong (Internal Server Error)
503
    Server in maintenance mode

EXAMPLE ERROR RESPONSE

>curl --user username:passkey
--url "https://www.availabilityexchange.com/gateway/gateway/getlowestrate?business_id=4089&check_in=202A-10-25&check_out=2021-10-28"

{
    dates should be formatted 'YYYY-MM-dd'
}