GET BOOKING LINK

GetBookingLink()

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)

Request Example

>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

Response Example

{
     "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

Response Error Example

>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"
    ]
}

Return to API Endpoints