POST api/Bookings
Request Information
URI Parameters
None.
Body Parameters
BookingInfo| Name | Description | Type | Additional 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. |
Request 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": "f55b0a10-1853-4042-866c-0997b695f71a",
"ProviderName": "sample string 8",
"ProviderType": "sample string 9",
"CompanyType": "sample string 10",
"ProviderID": "b2f95eb3-b5a3-4f8f-9931-f4e557284e8b",
"CountryID": 12,
"BookingDate": "2025-12-14T08:57:27.8284455+00:00",
"ShowID": 1,
"TheaterID": 1,
"CompanyRating": 1.1,
"ID": "c79396b5-8b32-41fb-8042-3d306e6dbb44"
}
application/xml, text/xml
Sample:
<BookingInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbsoluteHealth.API.Models"> <Address>sample string 3</Address> <AllowsBooking>true</AllowsBooking> <BookingDate>2025-12-14T08:57:27.8284455+00:00</BookingDate> <CompanyID>f55b0a10-1853-4042-866c-0997b695f71a</CompanyID> <CompanyRating>1.1</CompanyRating> <CompanyType>sample string 10</CompanyType> <CountryID>12</CountryID> <CountryName>sample string 1</CountryName> <HasSeatBooking>true</HasSeatBooking> <ID>c79396b5-8b32-41fb-8042-3d306e6dbb44</ID> <ImageFileName>sample string 2</ImageFileName> <ProviderID>b2f95eb3-b5a3-4f8f-9931-f4e557284e8b</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>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
StatusModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Success | boolean |
None. |
|
| UserMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Success": true,
"UserMessage": "sample string 3"
}
application/xml, text/xml
Sample:
<StatusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AbsoluteHealth.API.Models"> <Success>true</Success> <UserMessage>sample string 3</UserMessage> <Status>1</Status> </StatusModel>