Description:
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 |
|
countryId |
Required |
Country ID (integer). |
4 |
|
dateAvailibility |
Required |
The availability date (YYYY-MM-DD). |
|
|
cityName |
Required |
The city name (string). |
5 |
|
numberOfNights |
Required |
Number of nights (integer). |
|
|
numberOfrooms |
Required |
Number of rooms (integer). |
6 |
|
capacityNumberPaxPerRoom |
Required |
Capacity / Number of pax per room (integer). |
Example:
Request
{ "method": "accomodationAvailibilityPerCity", "username": "API_USER", "password": "API_PASSWORD", "countryId": 1, "dateAvailibility": "2019-12-10", "cityName": "Swellendam", "numberOfNights": 2, "numberOfRooms": 2, "serviceId": 201502250814349828, "capacityNumberPaxPerRoom": 1 } |
Response
{ "res": { "availabilities": [ { "name": "De Kloof Luxury Estate boutique hotel", "dateIn": "2019-12-10", "numberOfNights": "1", "city": "Swellendam", "rooms": [ { "roomType": "Deluxe Suites king or twin\r\nmax 2 pax", "availability": 3 }, { "roomType": "Luxury garden rooms king or twin\r\nmax 2 pax", "availability": 2
}, { "roomType": "Manor XL Suite superking\r\nmax 2 pax", "availability": 1
} ] }, { "name": "bloomestate", "dateIn": "2019-12-10", "numberOfNights": "1", "city": "Swellendam", "rooms": [ { "roomType": "Luxury Garden Room (King/Twin)\r\nmax 3 pax", "availability": 5 }, { "roomType": "Red Cloud Room (King)\r\nmax 2 pax", "availability": 1 } ] }
} |