Skip to content

Booking Enquiry

Alex Wyett edited this page Jun 30, 2016 · 6 revisions

A booking enquiry is used to check that the dates of a booking are allowed, and if so, to get details about the price of the booking.

Valid booking enquiry

{
    "id": "mousecott_ss",
    "propertyRef": "mousecott",
    "brandCode": "SS",
    "fromDate": "2012-07-01",
    "toDate": "2012-07-08",
    "partySize": 5,
    "pets": 2,
    "available": true,
    "price": {
        "outstandingBalance": 168.45,
        "basicPrice": 123.45,
        "extras": {
            "PET": {
                "quantity": 2,
                "description": "Pet Fee",
                "price": 10.00,
                "totalPrice": 20.00,
                "type": "compulsory"
            }, 
            "BKFE": {
                "quantity": 1,
                "description": "Booking Fee",
                "price": 25.00,
                "totalPrice": 25.00,
                "type": "compulsory"
            }
        },
        "totalPrice": 168.45,
        "securityDeposit": 100.00,
        "specialOffer": {
            "saving": 0
        }
    }
}
  • basicPrice - The starting price of the holiday, this is usually what is displayed in the brochure
  • extras - A list of any compulsory extras that have automatically been added onto the booking
  • totalPrice - The basicPrice plus the sum of the extras
  • securityDeposit - The value of the security deposit, if one is applicable
  • amountOustanding - The amount still to be paid on the booking.

Invalid booking

If for some reason the booking has not been allowed, an error response will be returned, with a 400 status code.

{
    "errorCode":20010,
    "errorDescription":"The property does not accept pets"
}

For further information on the error codes which are returned, see the Error Codes page.

A code example is available here.

Clone this wiki locally