GET api/Bookings/GetCancellationReasons
Allows a client to request a list of valid reasons within the system why a booking would be cancelled.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of cancellation reasons.
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:
[{"ID":0,"Reason":""}]
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?>
<CancellationReasons xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<APICancellationReason>
<ID>0</ID>
<Reason />
</APICancellationReason>
</CancellationReasons>