Inventory
Set inventory
This method can be used to update the 'rate plan - space type' mapping relations in the connection.
All mapping relations need to be sent.
Mapping relations that are defined in Mews for the connection, but missing in the call, are deleted.
It is possible to create a new rate-space category combination for the rates and space categories that are already in Mews.
It is impossible to add a new rate or space category.
Request
[PlatformAddress]/api/channelManager/v1/setInventory
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
inventoryMappings
required
Defines all rate plan - space type mapping relations.
Response
Request ARI update
Request
[PlatformAddress]/api/channelManager/v1/requestAriUpdate
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
from
string
required
Start of requested update in format "yyyy-MM-dd"
.
to
string
required
End of requested update in format "yyyy-MM-dd"
(included).
ariType
int
collection
optional
spaceTypeCodes
string
collection
optional
Space types to be updated. Blank means all, empty [] means none. Currently not supported, always requests updates for all.
ratePlanCodes
string
collection
optional
Rate plans to be updated. Blank means all, empty [] means none. Currently not supported, always requests updates for all..
ARI Types
1
Availability
2
Prices
3
Restrictions
Response
Confirm availability update
Request
[PlatformAddress]/api/channelManager/v1/processAvailabilityConfirmation
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
relatedMessageId
string
required
Id of message which requests relates to.
success
bool
required
Determinines the result of the operation.
errors
optional
In case of "success": false
, this property holds information about the errors that occurred.
Response
Confirm price update
Request
[PlatformAddress]/api/channelManager/v1/processRateConfirmation
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
relatedMessageId
string
required
Id of message which requests relates to.
success
bool
required
Determinines the result of the operation.
errors
optional
In case of "success": false
, this property holds information about the errors that occurred.
Response
Confirm restriction update
Request
[PlatformAddress]/api/channelManager/v1/processRestrictionConfirmation
clientToken
string
required
Client token of the channel manager.
connectionToken
string
required
Token of a concrete connection.
relatedMessageId
string
required
Id of message which requests relates to.
success
bool
required
Determinines the result of the operation.
errors
optional
In case of "success": false
, this property holds information about the errors that occurred.
Response
Last updated
Was this helpful?