Inventory
Update prices
This method is used when Mews updates prices of rate plans. Mews always pushes both gross
and net
prices, the channel manager chooses which of these to use.
Request
[ChannelManagerApiAddress]/updatePrices
Dependent Rate
Adjustment
Rate Price
Dates:
from
andto
represent the first and last date on which the price applies. The prices are the same for each date betweenfrom
andto
. So"from": "2021-12-24", "to": "2021-12-25"
means, the price applies on nights 2021-12-24/25 and 2021-12-25/26, but not anymore for night 2021-12-26/27.
Price
Age price
Response
Synchronous simple response is expected to determine whether the update was accepted or not and whether will be synchronous or asynchronous.
Update availability
This method is used when Mews updates availability of space types.
Request
[ChannelManagerApiAddress]/updateAvailability
Availability
Dates:
from
andto
represent the first and last date on which the availability applies. The availiablity is the same for each date betweenfrom
andto
. So"from": "2021-12-24", "to": "2021-12-25"
means, the availability applies on nights 2021-12-24/25 and 2021-12-25/26, but not anymore for night 2021-12-26/27.
Response
Synchronous simple response is expected to determine whether the update was accepted or not and whether will be synchronous or asynchronous.
Update restrictions
This method is used by Mews to push restrictions updates to the channel manager. Note there is no operation to add or delete restrictions, everything is done through Update restrictions. Thus any existing restrictions with the same scope and time period are overridden by the updated restrictions.
RestrictionsRestrictions can be a little complicated, and for historical reasons they work differently in the API than they do in Mews Operations. For this reason, care is advised. For a full explanation of restrictions and the issues around them, as well as extended examples using the API, see Concepts > Restrictions. This is recommended reading if you implement this API operation.
Request
[ChannelManagerApiAddress]/updateRestrictions
Restriction
Dates:
from
andto
represent the first and last date on which the restriction applies. The restriction is the same for each date betweenfrom
andto
. So"from": "2021-12-24", "to": "2021-12-25"
means the restriction applies on nights Dec 24/25 and Dec 25/26, but not any more for night Dec 26/27.
Restriction State
Response
Synchronous simple response is expected to determine whether the update was accepted or not and whether will be synchronous or asynchronous.
Last updated