otelz.CM.OTAV2

<back to all web services

OTA_HotelInvCountRQ

OTA_HotelInvCountRQ is used to fetch the current inventory for a given date range and room(s).

The following routes are available for this service:
POST/api/ota_hotelinvcountrq/
OTA_HotelInvCountRQ Parameters:
NameParameterData TypeRequiredDescription
HotelInvCountRequestsbodyList<HotelInvCountRequest>No
HotelbodyHotelSimpleNo
OtelzBaseRequest Parameters:
NameParameterData TypeRequiredDescription
LangquerystringNoDesired language of the response. Currently just 'tr' is supported.

Allowable Values

  • tr
ConversationTimequerystringNoTimestamp of the request message.

Allowable Values

  • 2019-07-17T07:40:05.068Z
ConversationIdquerystringNoA reference for additional message identification, assigned by the requesting host system.It will be echoed in the correlating response when provided in the request.

Allowable Values

  • 41433c0b-77ea-40e5-8368-d79f15afc01e
HotelInvCountRequest Parameters:
NameParameterData TypeRequiredDescription
FromformstringNo

Allowable Values

  • 2019-07-02
ToformstringNo

Allowable Values

  • 2019-07-02
RoomTypeCandidatesformList<RoomTypeCandidate>No
RoomTypeCandidate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

Allowable Values

  • 15344
HotelSimple Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNoHotel identifier

Allowable Values

  • 6361
OTA_HotelInvCountRS Parameters:
NameParameterData TypeRequiredDescription
InventoriesformList<Inventory>No
OtelzBaseResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformstringNo
ErrorsformList<Error>No
WarningsformList<Warning>No
ConversationIdformstringNo
ConversationTimeformstringNo
ConfirmedTimeformstringNo
Error Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
CodeformstringNo
TextformstringNo
Warning Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
TextformstringNo
Inventory Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
RoomTypesformList<RoomTypeForAvailGet>No
RoomTypeForAvailGet Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
StatusformstringNo
TotalAvailableInventoryformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/ota_hotelinvcountrq/ HTTP/1.1 
Host: cm-integration.otelz.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"HotelInvCountRequests":[{"From":"String","To":"String","RoomTypes":[{"Id":"String"}]}],"Hotel":{"Id":"String"},"Lang":"String","ConversationTime":"String","ConversationId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Inventories":[{"Date":"String","RoomTypes":[{"Id":"String","Name":"String","Status":"String","TotalAvailableInventory":0}]}],"Success":"String","Errors":[{"Type":"String","Code":"String","Text":"String"}],"Warnings":[{"Code":"String","Text":"String"}],"ConversationId":"String","ConversationTime":"String","ConfirmedTime":"String"}