GET api/Bookings?bookingType={bookingType}

Get all booking

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bookingType

Type 1 is for upcoming, and type 2 for previous, type 3 for vaccination booking

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of BookingInfo
NameDescriptionTypeAdditional information
CountryName

string

None.

ImageFileName

string

None.

Address

string

None.

SeatNumber

string

None.

SeatID

integer

None.

HasSeatBooking

boolean

None.

AllowsBooking

boolean

None.

CompanyID

globally unique identifier

None.

ProviderName

string

None.

ProviderType

string

None.

CompanyType

string

None.

ProviderID

globally unique identifier

None.

CountryID

integer

None.

BookingDate

date

None.

ShowID

integer

None.

TheaterID

integer

None.

CompanyRating

decimal number

None.

ID

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CountryName": "sample string 1",
    "ImageFileName": "sample string 2",
    "Address": "sample string 3",
    "SeatNumber": "sample string 4",
    "SeatID": 1,
    "HasSeatBooking": true,
    "AllowsBooking": true,
    "CompanyID": "45aac80a-5484-4b86-9708-a1d89d228ae4",
    "ProviderName": "sample string 8",
    "ProviderType": "sample string 9",
    "CompanyType": "sample string 10",
    "ProviderID": "4af071dc-c9b9-4e39-a2d5-1505501556de",
    "CountryID": 12,
    "BookingDate": "2025-06-08T02:51:11.481171+00:00",
    "ShowID": 1,
    "TheaterID": 1,
    "CompanyRating": 1.1,
    "ID": "55b4b53e-d35a-4505-a2c8-051830f428c0"
  },
  {
    "CountryName": "sample string 1",
    "ImageFileName": "sample string 2",
    "Address": "sample string 3",
    "SeatNumber": "sample string 4",
    "SeatID": 1,
    "HasSeatBooking": true,
    "AllowsBooking": true,
    "CompanyID": "45aac80a-5484-4b86-9708-a1d89d228ae4",
    "ProviderName": "sample string 8",
    "ProviderType": "sample string 9",
    "CompanyType": "sample string 10",
    "ProviderID": "4af071dc-c9b9-4e39-a2d5-1505501556de",
    "CountryID": 12,
    "BookingDate": "2025-06-08T02:51:11.481171+00:00",
    "ShowID": 1,
    "TheaterID": 1,
    "CompanyRating": 1.1,
    "ID": "55b4b53e-d35a-4505-a2c8-051830f428c0"
  }
]

application/xml, text/xml

Sample:
<ArrayOfBookingInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbsoluteHealth.API.Models">
  <BookingInfo>
    <Address>sample string 3</Address>
    <AllowsBooking>true</AllowsBooking>
    <BookingDate>2025-06-08T02:51:11.481171+00:00</BookingDate>
    <CompanyID>45aac80a-5484-4b86-9708-a1d89d228ae4</CompanyID>
    <CompanyRating>1.1</CompanyRating>
    <CompanyType>sample string 10</CompanyType>
    <CountryID>12</CountryID>
    <CountryName>sample string 1</CountryName>
    <HasSeatBooking>true</HasSeatBooking>
    <ID>55b4b53e-d35a-4505-a2c8-051830f428c0</ID>
    <ImageFileName>sample string 2</ImageFileName>
    <ProviderID>4af071dc-c9b9-4e39-a2d5-1505501556de</ProviderID>
    <ProviderName>sample string 8</ProviderName>
    <ProviderType>sample string 9</ProviderType>
    <SeatID>1</SeatID>
    <SeatNumber>sample string 4</SeatNumber>
    <ShowID>1</ShowID>
    <TheaterID>1</TheaterID>
  </BookingInfo>
  <BookingInfo>
    <Address>sample string 3</Address>
    <AllowsBooking>true</AllowsBooking>
    <BookingDate>2025-06-08T02:51:11.481171+00:00</BookingDate>
    <CompanyID>45aac80a-5484-4b86-9708-a1d89d228ae4</CompanyID>
    <CompanyRating>1.1</CompanyRating>
    <CompanyType>sample string 10</CompanyType>
    <CountryID>12</CountryID>
    <CountryName>sample string 1</CountryName>
    <HasSeatBooking>true</HasSeatBooking>
    <ID>55b4b53e-d35a-4505-a2c8-051830f428c0</ID>
    <ImageFileName>sample string 2</ImageFileName>
    <ProviderID>4af071dc-c9b9-4e39-a2d5-1505501556de</ProviderID>
    <ProviderName>sample string 8</ProviderName>
    <ProviderType>sample string 9</ProviderType>
    <SeatID>1</SeatID>
    <SeatNumber>sample string 4</SeatNumber>
    <ShowID>1</ShowID>
    <TheaterID>1</TheaterID>
  </BookingInfo>
</ArrayOfBookingInfo>