Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example request and response

...

Code Block
languagexml
titleOTA_HotelInvCountNotifRS response
<OTA_HotelInvCountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelBookingRuleNotifRQ.xsd" TimeStamp="2015-11-17T14:45:54+01:00" Target="Test" Version="1.0" CorrelationID="00Q564b2f91e1bf6">
  <Success />
</OTA_HotelInvCountNotifRS>
Code Block
titleOTA_HotelInvCountNotifRQ request as JSON
{
	"OTA_HotelInvCountNotifRQ": {
		"POS": {
			"Source": {
				"RequestorID": {
					"_Type": "5",
					"_ID": "USERNAME",
					"_MessagePassword": "PASSWORD"
				}
			}
		},
		"Inventories": {
			"Inventory": [
				{
					"StatusApplicationControl": {
						"_InvCode": "00F556c42e0d6559",
						"_Start": "2020-06-30",
						"_End": "2020-06-30"
					},
					"InvCounts": {
						"InvCount": {
							"_Count": "3",
							"_CountType": "14",
							"_ActionType": "Allocation"
						}
					}
				},
				{
					"StatusApplicationControl": {
						"_InvCode": "00F556c42e0d6559",
						"_Start": "2020-06-30",
						"_End": "2020-06-30"
					},
					"OffSell": {
						"_OffSellValue": "0"
					}
				}
			],
			"_HotelCode": "HOTELCODE",
			"_HotelName": "HOTELNAME",
		},
		"_PrimaryLangID": "en",
		"_TimeStamp": "2019-09-18T16:31:26+02:00",
		"_Target": "Test",
		"_Version": "1.000",
	}
}
Code Block
titleOTA_HotelInvCountNotifRS Response as JSON
{
    "Success": null,
    "_PrimaryLangID": "en",
    "_TimeStamp": "2019-09-19T07:28:14+02:00",
    "_Target": "Test",
    "_Version": "1.000",
    "_CorrelationID": null
}


Request structure

OTA_HotelInvCountNotifRQ

...