GET Booking Link


GetBookingLink() gets the property's booking website URL.  Unless otherwise specified, this URL will redirect through Availability Exchange to the the property's ResNexus booking engine.

REQUEST


End Point
https://www.availabilityexchange.com/gateway/getbookinglink
Parameters
    business_id (64-bit integer)

EXAMPLE REQUEST

>curl --user username:passkey
--url "https://www.availabilityexchange.com/gateway/getbookinglink?business_id=16609"

RESPONSE


response_errors
    See Response Errors
booking_url (string)
    the address for the booking website

EXAMPLE RESPONSE

{
     "booking_url": "https://resnexus.com/resnexus/reservations/book/4004829C-51BA-4527-8472-F2AB6AD1A9BD?startdate=9%2f1%2f2021",
     "response_errors":[]
}


Response Errors


200
    response_errors (list of strings)
       Unable to pull Booking Link for X
400
    business_id should be a long
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/getbookinglink?business_id=12"

{
    "booking_url": null,
    "response_errors":
    [
        "Unable to pull Booking Link for 12"
    ]
}