Push Cancellation
Description
This Push Cancellation request message allows a cancellation to be pushed from Levart to a PMS (Property Management System) system in JSON format.
Note
When a booking is cancelled in Levart the held Inventory is immediately released to all channels.
Direction
Levart → PMS
Request
{
"Authentication": {
"Username": "abc",
"Password": "456"
},
"MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
"TimeStamp": "2017-04-06T13:42:45+08:00",
"MessageType": "PushCancellation",
"CancellationData": {
"Reference": "12435467",
"PMSConfirmationNumber": "234234"
}
}
Specification JSON Cancellation Request
| Element | Num | Type | Description |
|---|---|---|---|
| Authentication | 1 | Object | Authentication object |
| Authentication > Username | 1 | String | Unique username for the property. |
| Authentication > Password | 1 | String | Unique password for the property. |
| MessageID | 1 | String | Unique Message ID |
| MessageType | 1 | String | Set to 'PushCancellation' |
| TimeStamp | 1 | DateTime | Date and time of the transaction in ISO 8601 format. e.g. 2016-01-28T15:15:00+08:00 |
| CancellationData | 1 | Object | CancellationData object |
| CancellationData > Reference | 1 | String | Booking reference number to be cancelled. |
| CancellationData > PMSConfirmationNumber | 1 | String | PMS Confirmation Number provided when booking was made / modified. |
Response (Success)
{
"MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
"TimeStamp": "2017-04-06T13:42:45+08:00",
"Status": "Success",
"BookingReference": "93225945",
"PMSConfirmationNumber":"234234"
}Response (Error)
{
"MessageID": "717b3bec-5321-4bad-84c1-075bff67f92c",
"TimeStamp": "2017-04-06T13:42:45+08:00",
"Status": "Error",
"ErrorMessage": "Invalid username or password."
}
Specification JSON Cancellation 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 transaction 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 | The echo reply data on Success. |
| BookingReference | 0..1 | String | The original booking reference number. |
| PMSConfirmationNumber | 0..1 | String | The PMS Confirmation number (Usually the original PMSConfirmationNumber) |