eBookingService
Click here for a complete list of operations.
GetReservation
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /eBookingService.asmx HTTP/1.1 Host: webservicesv2.bookcyprus.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservicesV2.bookcyprus.com/GetReservation" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetReservation xmlns="http://webservicesV2.bookcyprus.com/"> <rq> <BaseRequest> <UserName>string</UserName> <Password>string</Password> <Currency>string</Currency> <Language>string</Language> <CustomerIpAddress>string</CustomerIpAddress> <CustomerUserAgent>string</CustomerUserAgent> <CustomerLocationInfo>string</CustomerLocationInfo> </BaseRequest> <ReservationId>int</ReservationId> <ReservationCode>string</ReservationCode> <ClientReservationReference>string</ClientReservationReference> </rq> </GetReservation> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetReservationResponse xmlns="http://webservicesV2.bookcyprus.com/"> <GetReservationResult> <BaseResponse> <Response>OK or ERROR</Response> <ExecutionTime>int</ExecutionTime> <ShortMsg>string</ShortMsg> <LongMsg>string</LongMsg> </BaseResponse> <ReservationId>int</ReservationId> <ReservationCode>string</ReservationCode> <CreatedOn>dateTime</CreatedOn> <Title>string</Title> <FirstName>string</FirstName> <LastName>string</LastName> <Address>string</Address> <Email>string</Email> <City>string</City> <CountryId>int</CountryId> <Country>string</Country> <MobileNumber>string</MobileNumber> <Remarks>string</Remarks> <Currency>string</Currency> <Languge>string</Languge> <Amount>decimal</Amount> <AmountDue>decimal</AmountDue> <Status>string</Status> <AgencyReference>string</AgencyReference> <Hotels> <HotelReservationResponse> <ReservationDetailId>int</ReservationDetailId> <HotelId>int</HotelId> <Hotel>string</Hotel> <RoomId>int</RoomId> <Room>string</Room> <RoomIndx>string</RoomIndx> <MealId>int</MealId> <Meal>string</Meal> <Occupancy xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ProviderId>int</ProviderId> <ContractGroupId>int</ContractGroupId> <IsNonRef>boolean</IsNonRef> <CancellationFeePaid>decimal</CancellationFeePaid> <CancellationFeeIfCancelledToday>decimal</CancellationFeeIfCancelledToday> <CancellationPolicy xsi:nil="true" /> </HotelReservationResponse> <HotelReservationResponse> <ReservationDetailId>int</ReservationDetailId> <HotelId>int</HotelId> <Hotel>string</Hotel> <RoomId>int</RoomId> <Room>string</Room> <RoomIndx>string</RoomIndx> <MealId>int</MealId> <Meal>string</Meal> <Occupancy xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ProviderId>int</ProviderId> <ContractGroupId>int</ContractGroupId> <IsNonRef>boolean</IsNonRef> <CancellationFeePaid>decimal</CancellationFeePaid> <CancellationFeeIfCancelledToday>decimal</CancellationFeeIfCancelledToday> <CancellationPolicy xsi:nil="true" /> </HotelReservationResponse> </Hotels> <Cars> <CarReservationResponse> <ReservationDetailId>int</ReservationDetailId> <CarServiceId>int</CarServiceId> <CarServiceName>string</CarServiceName> <VehicleId>int</VehicleId> <VehicleDescription>string</VehicleDescription> <Supplements xsi:nil="true" /> <PickupPointLocation xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </CarReservationResponse> <CarReservationResponse> <ReservationDetailId>int</ReservationDetailId> <CarServiceId>int</CarServiceId> <CarServiceName>string</CarServiceName> <VehicleId>int</VehicleId> <VehicleDescription>string</VehicleDescription> <Supplements xsi:nil="true" /> <PickupPointLocation xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </CarReservationResponse> </Cars> <Transfers> <TransferReservationResponse> <ReservationDetailId>int</ReservationDetailId> <TransferServiceId>int</TransferServiceId> <TransferServiceName>string</TransferServiceName> <VehicleId>int</VehicleId> <VehicleTypeName>string</VehicleTypeName> <FromLocation xsi:nil="true" /> <ToLocation xsi:nil="true" /> <FromHotelId>int</FromHotelId> <FromHotelName>string</FromHotelName> <ToHotelId>int</ToHotelId> <ToHotelName>string</ToHotelName> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <NumberOfVehicles>int</NumberOfVehicles> <IsOneWay>boolean</IsOneWay> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </TransferReservationResponse> <TransferReservationResponse> <ReservationDetailId>int</ReservationDetailId> <TransferServiceId>int</TransferServiceId> <TransferServiceName>string</TransferServiceName> <VehicleId>int</VehicleId> <VehicleTypeName>string</VehicleTypeName> <FromLocation xsi:nil="true" /> <ToLocation xsi:nil="true" /> <FromHotelId>int</FromHotelId> <FromHotelName>string</FromHotelName> <ToHotelId>int</ToHotelId> <ToHotelName>string</ToHotelName> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <NumberOfVehicles>int</NumberOfVehicles> <IsOneWay>boolean</IsOneWay> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </TransferReservationResponse> </Transfers> <Excursions> <ExcursionReservationResponse> <ReservationDetailId>int</ReservationDetailId> <SupplierId>int</SupplierId> <SupplierName>string</SupplierName> <PickupLocationId>int</PickupLocationId> <ExcursionServiceId>int</ExcursionServiceId> <ExcursionName>string</ExcursionName> <Status>string</Status> <Adults>int</Adults> <Children>int</Children> <Infants>int</Infants> <Seniors>int</Seniors> <NumberOfVehicles>int</NumberOfVehicles> <PickupTime>dateTime</PickupTime> <TravelDate>dateTime</TravelDate> <Price>decimal</Price> </ExcursionReservationResponse> <ExcursionReservationResponse> <ReservationDetailId>int</ReservationDetailId> <SupplierId>int</SupplierId> <SupplierName>string</SupplierName> <PickupLocationId>int</PickupLocationId> <ExcursionServiceId>int</ExcursionServiceId> <ExcursionName>string</ExcursionName> <Status>string</Status> <Adults>int</Adults> <Children>int</Children> <Infants>int</Infants> <Seniors>int</Seniors> <NumberOfVehicles>int</NumberOfVehicles> <PickupTime>dateTime</PickupTime> <TravelDate>dateTime</TravelDate> <Price>decimal</Price> </ExcursionReservationResponse> </Excursions> <PaymentResponse> <Status>string</Status> <Amount>decimal</Amount> <Details>string</Details> </PaymentResponse> <ClientReservationReference>string</ClientReservationReference> </GetReservationResult> </GetReservationResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /eBookingService.asmx HTTP/1.1 Host: webservicesv2.bookcyprus.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetReservation xmlns="http://webservicesV2.bookcyprus.com/"> <rq> <BaseRequest> <UserName>string</UserName> <Password>string</Password> <Currency>string</Currency> <Language>string</Language> <CustomerIpAddress>string</CustomerIpAddress> <CustomerUserAgent>string</CustomerUserAgent> <CustomerLocationInfo>string</CustomerLocationInfo> </BaseRequest> <ReservationId>int</ReservationId> <ReservationCode>string</ReservationCode> <ClientReservationReference>string</ClientReservationReference> </rq> </GetReservation> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetReservationResponse xmlns="http://webservicesV2.bookcyprus.com/"> <GetReservationResult> <BaseResponse> <Response>OK or ERROR</Response> <ExecutionTime>int</ExecutionTime> <ShortMsg>string</ShortMsg> <LongMsg>string</LongMsg> </BaseResponse> <ReservationId>int</ReservationId> <ReservationCode>string</ReservationCode> <CreatedOn>dateTime</CreatedOn> <Title>string</Title> <FirstName>string</FirstName> <LastName>string</LastName> <Address>string</Address> <Email>string</Email> <City>string</City> <CountryId>int</CountryId> <Country>string</Country> <MobileNumber>string</MobileNumber> <Remarks>string</Remarks> <Currency>string</Currency> <Languge>string</Languge> <Amount>decimal</Amount> <AmountDue>decimal</AmountDue> <Status>string</Status> <AgencyReference>string</AgencyReference> <Hotels> <HotelReservationResponse> <ReservationDetailId>int</ReservationDetailId> <HotelId>int</HotelId> <Hotel>string</Hotel> <RoomId>int</RoomId> <Room>string</Room> <RoomIndx>string</RoomIndx> <MealId>int</MealId> <Meal>string</Meal> <Occupancy xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ProviderId>int</ProviderId> <ContractGroupId>int</ContractGroupId> <IsNonRef>boolean</IsNonRef> <CancellationFeePaid>decimal</CancellationFeePaid> <CancellationFeeIfCancelledToday>decimal</CancellationFeeIfCancelledToday> <CancellationPolicy xsi:nil="true" /> </HotelReservationResponse> <HotelReservationResponse> <ReservationDetailId>int</ReservationDetailId> <HotelId>int</HotelId> <Hotel>string</Hotel> <RoomId>int</RoomId> <Room>string</Room> <RoomIndx>string</RoomIndx> <MealId>int</MealId> <Meal>string</Meal> <Occupancy xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ProviderId>int</ProviderId> <ContractGroupId>int</ContractGroupId> <IsNonRef>boolean</IsNonRef> <CancellationFeePaid>decimal</CancellationFeePaid> <CancellationFeeIfCancelledToday>decimal</CancellationFeeIfCancelledToday> <CancellationPolicy xsi:nil="true" /> </HotelReservationResponse> </Hotels> <Cars> <CarReservationResponse> <ReservationDetailId>int</ReservationDetailId> <CarServiceId>int</CarServiceId> <CarServiceName>string</CarServiceName> <VehicleId>int</VehicleId> <VehicleDescription>string</VehicleDescription> <Supplements xsi:nil="true" /> <PickupPointLocation xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </CarReservationResponse> <CarReservationResponse> <ReservationDetailId>int</ReservationDetailId> <CarServiceId>int</CarServiceId> <CarServiceName>string</CarServiceName> <VehicleId>int</VehicleId> <VehicleDescription>string</VehicleDescription> <Supplements xsi:nil="true" /> <PickupPointLocation xsi:nil="true" /> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </CarReservationResponse> </Cars> <Transfers> <TransferReservationResponse> <ReservationDetailId>int</ReservationDetailId> <TransferServiceId>int</TransferServiceId> <TransferServiceName>string</TransferServiceName> <VehicleId>int</VehicleId> <VehicleTypeName>string</VehicleTypeName> <FromLocation xsi:nil="true" /> <ToLocation xsi:nil="true" /> <FromHotelId>int</FromHotelId> <FromHotelName>string</FromHotelName> <ToHotelId>int</ToHotelId> <ToHotelName>string</ToHotelName> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <NumberOfVehicles>int</NumberOfVehicles> <IsOneWay>boolean</IsOneWay> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </TransferReservationResponse> <TransferReservationResponse> <ReservationDetailId>int</ReservationDetailId> <TransferServiceId>int</TransferServiceId> <TransferServiceName>string</TransferServiceName> <VehicleId>int</VehicleId> <VehicleTypeName>string</VehicleTypeName> <FromLocation xsi:nil="true" /> <ToLocation xsi:nil="true" /> <FromHotelId>int</FromHotelId> <FromHotelName>string</FromHotelName> <ToHotelId>int</ToHotelId> <ToHotelName>string</ToHotelName> <FromDate>dateTime</FromDate> <ToDate>dateTime</ToDate> <NumberOfVehicles>int</NumberOfVehicles> <IsOneWay>boolean</IsOneWay> <Amount>decimal</Amount> <Status>string</Status> <ExternalData>string</ExternalData> </TransferReservationResponse> </Transfers> <Excursions> <ExcursionReservationResponse> <ReservationDetailId>int</ReservationDetailId> <SupplierId>int</SupplierId> <SupplierName>string</SupplierName> <PickupLocationId>int</PickupLocationId> <ExcursionServiceId>int</ExcursionServiceId> <ExcursionName>string</ExcursionName> <Status>string</Status> <Adults>int</Adults> <Children>int</Children> <Infants>int</Infants> <Seniors>int</Seniors> <NumberOfVehicles>int</NumberOfVehicles> <PickupTime>dateTime</PickupTime> <TravelDate>dateTime</TravelDate> <Price>decimal</Price> </ExcursionReservationResponse> <ExcursionReservationResponse> <ReservationDetailId>int</ReservationDetailId> <SupplierId>int</SupplierId> <SupplierName>string</SupplierName> <PickupLocationId>int</PickupLocationId> <ExcursionServiceId>int</ExcursionServiceId> <ExcursionName>string</ExcursionName> <Status>string</Status> <Adults>int</Adults> <Children>int</Children> <Infants>int</Infants> <Seniors>int</Seniors> <NumberOfVehicles>int</NumberOfVehicles> <PickupTime>dateTime</PickupTime> <TravelDate>dateTime</TravelDate> <Price>decimal</Price> </ExcursionReservationResponse> </Excursions> <PaymentResponse> <Status>string</Status> <Amount>decimal</Amount> <Details>string</Details> </PaymentResponse> <ClientReservationReference>string</ClientReservationReference> </GetReservationResult> </GetReservationResponse> </soap12:Body> </soap12:Envelope>