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
PMS → Levart
POST /property-info/v1/get
Endpoint
Specification JSON Request
| Parameter | Num | Type | Required | Description |
|---|---|---|---|---|
| MessageID | 1 | String | Yes | Message ID (UUID) |
| TimeStamp | 1 | DateTime | Yes | Date and time of the transaction in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00 |
| MessageType | 1 | String | Yes | Set to 'GetPropertyInfo' |
Request Data
{
"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
| Element | Num | Type | Description |
|---|---|---|---|
| MessageID | 1 | String | Unique Message ID (Same as the Request Message ID) |
| TimeStamp | 1 | DateTime | Date and time of the message in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00 |
| Status | 1 | String | Element contains either 'Error' or 'Success' |
| ErrorMessage | 0..1 | String | Error message (on error only). |
| ProperyData | 1..n | Object | Property Data Object |
| ProperyData > PropertyName | 1 | String | The name of the property that this message belongs to |
| ProperyData > RoomTypes | 0..n | Array | Array of RoomTypes |
| RoomTypes n > RoomTypeCode | 1 | String | Room Type Code e.g. 'STD' or 123 |
| RoomTypes n > RoomTypeName | 1 | String | Name of the Room Type e.g. 'Standard Room with View' |
| RoomTypes n > RateTypes | 0..n | Array | Array of Rate Types that belong within the Room Type. |
| RateTypes n > RateTypeCode | 1 | String | Code of the Rate Type e.g. '123' or 'Rack' |
| RateTypes n >RateTypeName | 1 | String | Name of the Rate Type e.g. 'Rack Rate' or 'Internet Rate' |