This message sends a notification to the OTA that synchronizes the inventory available for sale at the hotel.
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelInvCountNotifRQ EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<POS>
<Source>
<RequestorID ID="APIKEY" MessagePassword="APIPASSWORD"/>
</Source>
</POS>
<Inventories HotelCode="12345">
<Inventory>
<StatusApplicationControl InvTypeCode="1" Start="2018-07-24" End="2018-07-31" Mon="true" Fri="true" />
<InvCounts>
<InvCount Count="5" CountType="1" />
</InvCounts>
</Inventory>
</Inventories>
</OTA_HotelInvCountNotifRQ>
Element / @Attribute | Parent | Info | Values | Occurrence |
---|---|---|---|---|
Inventories | OTA_HotelInvCountNotifRQ | A collection of Inventory. Hotel identification information are the attributes of this element. | 1 | |
@HotelCode | Inventories | The ID of the hotel. | [integer] | 1 |
Inventory | Inventories | This is the inventory information for a given rate plan, room type, date, etc. The set of changes in the number of units of base inventory for one inventory type (code) to be made on the server. The server must successfully update all messages. Failure to update any single status message will result in the failure of all messages. | 1..n | |
StatusApplicationControl | Inventory | Information on what the InvCountNotif Message applies to (i.e. the combination of inventory and/or rate codes) and the period of application. The StatusApplicationControl class is used to indicate to which block codes/rate plans/inventory codes a status should be applied. | 1 | |
@InvTypeCode | StatusApplicationControl | The ID of the room, or the ID of the room plan (in case InvCodeApplication has been set to InvGroupingCode). | [integer] | 1 |
@InvType | StatusApplicationControl | Optional attribute to be included when a bed type in a room needs to be updated. Always set to BedType . Omit when updating a room. |
BedType |
0..1 |
@InvCode | StatusApplicationControl | Optional attribute to be included when a bed type in a room needs to be updated. Indicates the ID of the bed type. | [integer] | 0..1 |
@InvCodeApplication | StatusApplicationControl | Omit when updating a room, set to InvGroupingCode when updating a room plan. |
InvGroupingCode |
0..1 |
@Start | StatusApplicationControl | The starting value of the time span. | [yyyy-MM-dd] | 1 |
@End | StatusApplicationControl | The ending value of the time span. | [yyyy-MM-dd] | 1 |
@Mon, @Tue, @Weds, @Thur, @Fri, @Sat, @Sun | StatusApplicationControl | When true , applies only to a particular day. |
true false |
0..1 |
InvCounts | Inventory | A collection of inventory counts. | 1 | |
InvCount | InvCounts | Individual inventory count. | 1 | |
Count | InvCount | An integer representing the count. | [integer] | 1 |
@CountType | InvCount | This identifies the type of inventory count being reported. | Refer to OpenTravel Code List Inventory Count Type (INV). Value: 1 = Physical |
0..1 |
This message is used to indicate the status of processing the OTA_HotelInvCountNotifRQ
message.
<?xml version="1.0" encoding="utf-8"?>
<OTA_HotelInvCountNotifRS EchoToken="Example123" PrimaryLangID="eng" Target="Production" TimeStamp="2018-07-29T07:38:54.729Z" Version="1.0">
<Success />
<UniqueID ID="123456" Type="18" />
</OTA_HotelInvCountNotifRS>
Element / @Attribute | Parent | Info | Values | Occurrence |
---|---|---|---|---|
UniqueID | OTA_HotelInvCountNotifRS | An identifier used to uniquely reference an object in a system. | 1 | |
@ID | UniqueID | The queue ID. | [integer] | 1 |
@Type | UniqueID | A reference to the type of object defined by the UniqueID element. | Refer to OpenTravel Code List Unique ID Type (UIT). Value: 18 = Other |
1 |