GET api/Bookings/CancelBooking/{BookingID}/{CancelledReason}
Allows a client to request that a booking is cancelled for a specific reason.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| BookingID |
The ID of the booking to be cancelled. |
integer |
Required |
| CancelledReason |
The reason for cancelling the booking. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{"Result":"Complete","Message":"Booking was cancelled successfully"}
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?> <InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>Complete</Result> <Message>Booking was cancelled successfully</Message> </InformationResponse>