GET api/Bookings/GetCancelledBookings/{StartDate}/{EndDate}
Allows a client to request a list of cancelled bookings between a start and end date range.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| StartDate |
The first date to look for cancelled bookings from. |
date |
Required |
| EndDate |
The end date to look for cancelled bookings. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of cancelled booking IDs with the date they were cancelled and the reason they were cancelled.
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:
[{"BookingID":0,"CancelledOn":"0001-01-01T00:00:00","CancelledReason":""}]
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?>
<CancelledBookings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<APICancelledBookingDetails>
<BookingID>0</BookingID>
<CancelledOn>0001-01-01T00:00:00</CancelledOn>
<CancelledReason />
</APICancelledBookingDetails>
</CancelledBookings>