index

setRoomDates JSON


Instructions

Post JSON data here to set room price and availability.

See here for information about using the JSON API.

The JSON data is similar to that returned by getRoomDates. See it for information about the data fields.

To remove a min stay or max stay, set it's value to 0 (zero).

To delete a multiplier and set the date to auto, set the multiplier value to 0 (zero).

Example Data

{
    "authentication": {
        "apiKey": "apiKeyAsSetInAccountSettings",
        "propKey": "propKeyAsSetForTheProperty"
    },
    "roomId": "12345",
    "dates": {
        "20141015": {
            "p1": "45.00",
            "p2": "55.00",
            "p3": "65.00",
            "p4": "75.00",
            "i": "1"
        },
        "20141016": {
            "i": "0",
            "o": "1"
        },
        "20141019": {
            "p1": "49.99",
            "m": "2",
            "mx": "3"
        }
    }
}