Get Rooms & Rates

Description

Levart requires the property Room Type and Rate Type information to be able to map the codes from system to system.

The same Room Type and Rate Type codes will be used by the PMS to push Inventory update and Rate update messages to Levart. Levart will also use these codes to push bookings and modifications. All mapping will be done on the Levart end using our 'Link Editor' tool.

Direction

Levart → PMS

Endpoint

Specified by PMS

Specification JSON Request

ParameterNumTypeRequiredDescription
Authentication1Object-Authentication object
Authentication > Username1String-Unique username for the property.
Authentication > Password1String-Unique password for the property.
MessageID1StringYesMessage ID (UUID)
TimeStamp1DateTimeYesDate and time of the transaction in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00
MessageType1StringYesSet to 'GetPropertyInfo'

Request Data

{
  "Authentication": {
    "Username": "abc",
    "Password": "456"
  },
  "MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
  "TimeStamp": "2016-09-28T15:15:00+08:00",
  "MessageType": "GetPropertyInfo"
}

Response Data (Success)

{
  "MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
  "TimeStamp": "2016-09-28T15:15:00+08:00",
  "Status":    "Success",
  "PropertyData": {
		"PropertyName": "Aman's Test Site",
		"RoomTypes": [
			{
				"RoomTypeCode": "hjgay2",
				"RoomTypeName": "Single Room",
				"RateTypes": [
					{
						"RateTypeCode": "1cg2a",
						"RateTypeName": "1+ Night Stay"
					},
					{
						"RateTypeCode": "2ghba",
						"RateTypeName": "3+ Night Stay"
					}
				]
			},
			{
				"RoomTypeCode": "tust2",
				"RoomTypeName": "Double Room",
				"RateTypes": [
					{
						"RateTypeCode": "25di8",
						"RateTypeName": "3+ Night Stay"
					},
					{
						"RateTypeCode": "45duds",
						"RateTypeName": "5+ Night Stay"
					}
				]
			}
		]
	}
}

Response Data (Error)

{
  "MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
  "TimeStamp": "2016-09-28T15:15:00+08:00",
  "Status": "Error",
  "ErrorMessage": "Invalid date provided."
}



Specification Get Property Info Response

ElementNumTypeDescription
MessageID1StringUnique Message ID (Same as the Request Message ID)
TimeStamp1DateTimeDate and time of the message in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00
Status1StringElement contains either 'Error' or 'Success'
ErrorMessage0..1StringError message (on error only).
ProperyData1..nObjectProperty Data Object
ProperyData > PropertyName1StringThe name of the property that this message belongs to
ProperyData > RoomTypes0..nArrayArray of RoomTypes
RoomTypes n > RoomTypeCode1StringRoom Type Code e.g. 'STD' or 123
RoomTypes n > RoomTypeName1StringName of the Room Type e.g. 'Standard Room with View'
RoomTypes n > RateTypes0..nArrayArray of Rate Types that belong within the Room Type.
RateTypes n > RateTypeCode1StringCode of the Rate Type e.g. '123' or 'Rack'
RateTypes n >RateTypeName1StringName of the Rate Type e.g. 'Rack Rate' or 'Internet Rate'