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 |
|
dateAvailibility |
Required |
The availability date (YYYY-MM-DD). |
5 |
|
numberOfNights |
Required |
Number of nights (integer). |
6 |
|
serviceId |
Required |
Service Id to search availability for a specific service (accommodation). |
Example:
Request
{ "method": "accomodationAvailibiltyPerService", "username": "API_USER", "password": "API_PASSWORD", "dateAvailibility": "2019-12-20", "numberOfNights": 2, "serviceId": 201502250814349828 } |
Response
{ "res": { "availabilities": [ { "name": "10 2ND AVENUE HOUGHTON ESTATE", "dateIn": "2019-12-10", "numberOfNights": "1", "city": "Johannesburg", "rooms": [ { "roomType": "Luxury Room\r\nmax 2 pax", "availability": 10 }, { "roomType": "Executive Suite\r\nmax 2 pax", "availability": 3 }, { "roomType": "Presidential Suite\r\nmax 2 pax", "availability": 1 }, { "roomType": "Family Room \r\nmax 4 pax", "availability": 1 } ] } ] } } |