accommodationAvailabilityMultipleServices

accommodationAvailabilityMultipleServices

Description:

Returns an accommodation availability list for a multiple services.

Version:
Available from version 1.0.1.

Access:
Available to all users.

Parameters:

NUMBER

 

NAME

O/R

USAGE

1

 

method

Required

Method used Case sensitive (string).

2

 

username

Required

The username to log. Case sensitive (string).

3

 

password

Required

The password to log. Case sensitive (string).

4

 

dateAvailibility

Required

The availability date (AAAA-MM-JJ)

5

 

serviceID

Required

List of services ID separated by “,”  (string) example below

6


numberOfNights

Required

Number of nights (integer)

7


numberOfroomsRequired
Number of rooms (integer)

8


capacityNumberPaxPerRoomRequired
Capacity / Number of pax per room (integer)

Example:

 

Request


{

    "method""accommodationAvailabilityMultipleServices",

    "username""ADMIN",

    "password""ADMIN",

    "dateAvailibility""2020-10-10",

    "serviceId""2014070715120375,201502250814349505",

    "numberOfNights":1,

    "numberOfrooms":1,

    "capacityNumberPaxPerRoom":1

}

 


 Response

{

    "res": {

        "availabilities": [

            {

                "serviceId"2014070715120375,

                "name""AtholPlace House & Villa",

                "dateIn""2020-10-10",

                "numberOfNights""1",

                "city""Johannesburg",

                "rooms": [

                    {

                        "roomType""AtholPlace Villa\r\nmax 8 pax",

                        "availability"1

                    },

                    {

                        "roomType""AtholPlace House\r\nmax 18 pax",

                        "availability"1

                    }

                ]

            },

            {

                "serviceId"201502250814349505,

                "name""The Peech Hotel",

                "dateIn""2020-10-10",

                "numberOfNights""1",

                "city""Johannesburg",

                "rooms": [

                    {

                        "roomType""CLASSIC ROOM\r\nmax 2 pax",

                        "availability"2

                    },

                    {

                        "roomType""LUXURY ROOM\r\nmax 2 pax",

                        "availability"2

                    },

                    {

                        "roomType""PEECH SUITE\r\nmax 2 pax",

                        "availability"2

                    },

                    {

                        "roomType""PEECH VILLA\r\nmax 4 pax",

                        "availability"1

                    }

                ]

            }

        ]

    }

}