Travel Api
Search Client
Docs
< BACK
Accommodations - v1.0.0 Client
This api allows to handle accommodations.
Beta
Api Messages
Api Authorization
Api Key
Api Secret
Get Token
Token:
If you already have a token, you can put it here directly.
The token must be embeded in the request as "AuthToken" HTTP Header or as "authtoken" Querystring Parameter.
The examples in this client uses the token as a querystring parameter.
Use JSON
Accommodation
Method:
POST
Description:
Gets the purchases
Route:
api/accommodation/getpurchase
Input Parameters:
Body
Request Object:
ApiGetPurchaseRQ (
XSD
/
Schema
)
Response Object:
NewPurchaseRS (
XSD
/
Schema
)
Request
Request Body:
<?xml version="1.0" encoding="utf-8"?> <ApiGetPurchaseRQ RequestId="00000000-0000-0000-0000-000000000000" CeUser="" PurchaseId="00000000-0000-0000-0000-000000000000" />
POST
Response
Url:
Response:
Method:
POST
Description:
Gets accommodation.
Route:
api/accommodation/get
Input Parameters:
Body
Request Object:
ApiGetAccommodationRQ (
XSD
/
Schema
)
Response Object:
ApiGetAccommodationRS (
XSD
/
Schema
)
Request
Request Body:
<?xml version="1.0" encoding="utf-8"?> <ApiGetAccommodationRQ RequestId="00000000-0000-0000-0000-000000000000" CeUser="" PurchaseId="00000000-0000-0000-0000-000000000000" AccommodationId="00000000-0000-0000-0000-000000000000" />
POST
Response
Url:
Response:
Method:
POST
Description:
Add accommodation.
Route:
api/accommodation/add
Input Parameters:
Body
Request Object:
ApiAddAccommodationRQ (
XSD
/
Schema
)
Response Object:
ApiAddAccommodationRS (
XSD
/
Schema
)
Request
Request Body:
<?xml version="1.0" encoding="utf-8"?> <ApiAddAccommodationRQ RequestId="00000000-0000-0000-0000-000000000000" CeUser="" PurchaseId="00000000-0000-0000-0000-000000000000"> <Accommodation AccommodationId="00000000-0000-0000-0000-000000000000" Currency="" Lang="" Status="" CustomerBookingRef="" SupplierBookingRef="" SupplierCode="" CreationDate="0001-01-01T00:00:00" AccomCode="" AccomName="" Address="" CityCode="" CityName="" Category="0" TotalPriceNet="0" TotalPriceRacknet="0" TotalPriceForcedPrice="0" Latitude="0" Longitude="0" ShortDescription="" ThumbnailUrl="" From="0001-01-01T00:00:00" To="0001-01-01T00:00:00" VoucherObservation="" VoucherUrl="" ReturnSearchHotelUrl="" ReturnHotelUrl="" BookingHotelUrl="" SalesConditions="" TripAdvisorUrl=""> <CancelFeesNet p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" /> <CancelFeesRack p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" /> <TripAdvisorScore p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" /> <TripAdvisorAvis p3:nil="true" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance" /> <Rooms> <Room RoomId="00000000-0000-0000-0000-000000000000" KoediaRoomId="" RoomPlan="" RoomPlanAges="" RoomTypeCode="" RoomTypeName="" RoomDescription=""> <Boards> <Board BoardId="00000000-0000-0000-0000-000000000000" PaxType="Adult" Type="" Code="" Generic="" Name="" /> </Boards> <Miscellaneous> <Miscellaneum Key="" Value="" /> </Miscellaneous> </Room> </Rooms> <Miscellaneous> <Miscellaneum Key="" Value="" /> </Miscellaneous> </Accommodation> </ApiAddAccommodationRQ>
POST
Response
Url:
Response:
Method:
POST
Description:
Remove accommodation.
Route:
api/accommodation/remove
Input Parameters:
Body
Request Object:
ApiRemoveAccommodationRQ (
XSD
/
Schema
)
Response Object:
ApiRemoveAccommodationRS (
XSD
/
Schema
)
Request
Request Body:
<?xml version="1.0" encoding="utf-8"?> <ApiRemoveAccommodationRQ RequestId="00000000-0000-0000-0000-000000000000" CeUser="" PurchaseId="00000000-0000-0000-0000-000000000000" AccommodationId="00000000-0000-0000-0000-000000000000" />
POST
Response
Url:
Response: