index

setRateLinks JSON


Instructions

Post JSON data here to create or modify rate linking.

See here for information about using the JSON API.

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

The action field specifies the action to take and can be "new", "modify" or "delete".

The rateId, roomId and offerId parameters must all be specified and cannot be changed with the modify action.

It is not necessary to send unchanged fields when modifying data, it is better to only include the fields which have changed.

linkType values

Value Description
1 percentage offset
2 per booking offset
3 per day offset
4 per person per day offset
5 no offset
6 per period offset

Example Data

New rate link

{
    "authentication": {
        "apiKey": "apiKeyAsSetInAccountSettings",
        "propKey": "propKeyAsSetForTheProperty"
    },
    "setRateLinks": [
        {
            "action": "new",
            "rateId": "123456",
            "roomId": "12345",
            "offerId": "1",
            "linkType": "5",
            "offset": "10"
        }
    ]
}

Delete rate link

{
    "authentication": {
        "apiKey": "apiKeyAsSetInAccountSettings",
        "propKey": "propKeyAsSetForTheProperty"
    },
    "setRateLinks": [
        {
            "action": "delete",
            "rateId": "123456",
            "roomId": "12345",
            "offerId": "1"
        }
    ]
}

Modify rate link

{
    "authentication": {
        "apiKey": "apiKeyAsSetInAccountSettings",
        "propKey": "propKeyAsSetForTheProperty"
    },
    "setRateLinks": [
        {
            "action": "modify",
            "rateId": "123456",
            "roomId": "12345",
            "offerId": "1",
            "linkType": "4",
            "offset": "-5",
            "bookingcomRateCode": "123456"
        }
    ]
}