POST api/Bookings
Request Information
URI Parameters
None.
Body Parameters
BookingInfoName | 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": "f1145984-99d0-4bd9-80c8-51e55fe969a3", "ProviderName": "sample string 8", "ProviderType": "sample string 9", "CompanyType": "sample string 10", "ProviderID": "f9922398-dcfe-468a-885e-845ef0b6d981", "CountryID": 12, "BookingDate": "2025-06-08T01:30:34.2691071+00:00", "ShowID": 1, "TheaterID": 1, "CompanyRating": 1.1, "ID": "93afab78-266b-4209-965c-b5d243e9e4e1" }
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-06-08T01:30:34.2691071+00:00</BookingDate> <CompanyID>f1145984-99d0-4bd9-80c8-51e55fe969a3</CompanyID> <CompanyRating>1.1</CompanyRating> <CompanyType>sample string 10</CompanyType> <CountryID>12</CountryID> <CountryName>sample string 1</CountryName> <HasSeatBooking>true</HasSeatBooking> <ID>93afab78-266b-4209-965c-b5d243e9e4e1</ID> <ImageFileName>sample string 2</ImageFileName> <ProviderID>f9922398-dcfe-468a-885e-845ef0b6d981</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
StatusModelName | 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>