Inventory
This endpoint allows external applications to update
availability, rates and restrictions for a single
property.
To be more efficient the inventory request allows
clients to update availability, rates and restrictions
in batch. Each of the components are optional so a
request could only update restrictions or rates for
example. Allocations will not show on the extranet
until all 3 of the updates have been provided though.
Each of the individual components (availability, rates,
restrictions) allows for batched updates so multiple
apartment types and rate plan ids can be updated in
a single request, but only one property can be
updated at a time.
The dates should always be sent in the format
YYYY-mm-dd (Year - Month - Day).
Availability updates allow the clients to set
availability restrictions for the specified date range.
The client can provide the quantity of rooms available
during the date period (quantity field) or the general
stop sell flag (isAvailable).
If isAvailable is set to false the room will not be
available for the date range even if the quantity is
more than 0. In the same way if the quantity is 0 and
the room is set to isAvailable=true the room is not
available. Both conditions need to be met for the room
to be available: quantity > 0 && isAvailable=true
Rates updates allow the clients to set the price
of the room for a specific period.
Please note that the rates should be sent to us in
minor units e.g. £150 = 15000 minor units.
Restrictions updates allow the clients to apply
restrictions on the rooms for a period of time.
The restrictions we can apply are minimum stay (how
many nights must a guest stay if they were to check in
during that day), if check in is allowed during that day
or if check out is allowed during that day.
If all the updates are successful the system will
reply with a success message. If not, none of the
updates are going to be applied.