Make Reservation

Method:   POST
JSON:     https://effectivetours.com/api/agenda/book/<HOUSE_ID>/<ROOM_ID>/<ACCOMMODATION>/<CHECKIN>/<CHECKOUT>/<CNT>.json

Parameters

HOUSE_IDID of Hotel or House
ROOM_IDID of Room Type
ACCOMMODATIONOne of SGL, DBL, TPL, FULL
CHECKINDate of check-in. Format: YYYY-MM-DD
CHECKOUTDate of check-out. Format: YYYY-MM-DDD
CNTCount of requested rooms. Optional

GET Parameters

KEYAPI Key

POST Parameters

adultsCount of adults. Integer, optional.
childrenCount of children. Integer, optional.
priceReservation total price. Decimal, optional.
revenueRevenue. Decimal, optional.
first_nameGuest's first name. Optional.
last_nameGuest's last name. Optional.
emailGuest's email. Optional.
phoneGuest's phone number. Optional.
commentComment. Optional.

JSON response

{
    "status": "OK",
    "result": "OK",
    "book_id": "123",
    "hotel": 2,
    "room": 15,
    "accommodation": "dbl",
    "checkin": "2013-08-05",
    "checkout": "2013-08-10",
    "cnt": 1
}
{
    "status": "OK",
    "result": "OK",
    "book_id": ["123", "124"],  # Split reservations
    "hotel": 2,
    "room": 15,
    "accommodation": "dbl",
    "checkin": "2013-08-05",
    "checkout": "2013-08-10",
    "cnt": 1
}
{
    "status": "OK",
    "result": "BUSY",
    "hotel": 2,
    "room": 15,
    "accommodation": "dbl",
    "checkin": "2013-08-05",
    "checkout": "2013-08-10",
    "cnt": 3
}