POST v{version}/{lang}/Hotel/addToCart?currency={currency}&wp={wp}
Adds booking to cart
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang | string |
Required |
|
currency | string |
Default value is ISK |
|
wp | string |
Default value is GG |
|
version |
The requested API version |
string |
Required Default value is 1.0 |
Body Parameters
AddAccomodationBookingName | Description | Type | Additional information |
---|---|---|---|
PropertyId |
Identifier of the property which booking is made for |
integer |
Required Range: inclusive between 1 and 2147483647 |
StartDate |
Start date for the booking rooms |
date |
Required |
EndDate |
End date for the booking rooms |
date |
Required |
BookingRooms |
Rooms booked |
Collection of AddAccomodationBookingRoomModel |
None. |
Notes |
Notes for the booking |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PropertyId": 1, "StartDate": "2025-01-21T06:10:40.6267585+00:00", "EndDate": "2025-01-21T06:10:40.6267585+00:00", "BookingRooms": [ { "RoomId": 1, "Pax": 1, "Quantity": 2, "Breakfast": true }, { "RoomId": 1, "Pax": 1, "Quantity": 2, "Breakfast": true } ], "Notes": "sample string 3" }
application/xml, text/xml
Sample:
<AddAccomodationBooking xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Models"> <BookingRooms> <AddAccomodationBookingRoomModel> <Breakfast>true</Breakfast> <Pax>1</Pax> <Quantity>2</Quantity> <RoomId>1</RoomId> </AddAccomodationBookingRoomModel> <AddAccomodationBookingRoomModel> <Breakfast>true</Breakfast> <Pax>1</Pax> <Quantity>2</Quantity> <RoomId>1</RoomId> </AddAccomodationBookingRoomModel> </BookingRooms> <EndDate>2025-01-21T06:10:40.6267585+00:00</EndDate> <Notes>sample string 3</Notes> <PropertyId>1</PropertyId> <StartDate>2025-01-21T06:10:40.6267585+00:00</StartDate> </AddAccomodationBooking>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />