Reservation
Click here for a complete list of operations.
SaveThirdPartyReservation
For paximum fast booking
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 /swsgroup4/Reservation.asmx HTTP/1.1
Host: b2b.peninsula.com.tr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.sansejour.com/SaveThirdPartyReservation"
<?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>
<SaveThirdPartyReservation xmlns="http://www.sansejour.com/">
<token>string</token>
<Params>
<VccPaymentEnabled>boolean</VccPaymentEnabled>
<VccInfo>
<ExpirationDate>string</ExpirationDate>
<SecurityNumber>string</SecurityNumber>
<HolderName>string</HolderName>
<CreditCardNumber>string</CreditCardNumber>
<TotalPaymentAmount>float</TotalPaymentAmount>
<CurrencyCode>USD or EUR or GBP or JPY or CHF or CAD or AUD or CNY or TRY or RUB or KRW or INR or BRL or ZAR or SGD or HKD or NZD or MXN or SAR or SEK or NOK or DKK or PLN or HUF</CurrencyCode>
</VccInfo>
<IsChannelManagerBooking>boolean</IsChannelManagerBooking>
<ProviderName>string</ProviderName>
<ri>
<OnlyCalculate>boolean</OnlyCalculate>
<TourOp>string</TourOp>
<Voucher>string</Voucher>
<source>int</source>
<Group1>string</Group1>
<Group2>string</Group2>
<Group3>string</Group3>
<Group4>string</Group4>
<Group5>string</Group5>
<Group6>string</Group6>
<GroupNum>string</GroupNum>
<OnlyHotel>boolean</OnlyHotel>
<voucherNote>string</voucherNote>
<customer>
<Customer xsi:nil="true" />
<Customer xsi:nil="true" />
</customer>
<resHotel>
<ResHotel xsi:nil="true" />
<ResHotel xsi:nil="true" />
</resHotel>
<OwnProvider>boolean</OwnProvider>
<ExternalSupplierResNo>string</ExternalSupplierResNo>
<SejResType>string</SejResType>
<DontWaitForCalculation>boolean</DontWaitForCalculation>
</ri>
<SpecialPrices>
<SpecialPrice>
<OrdNum>int</OrdNum>
<BuyingPrice>double</BuyingPrice>
<BuyingCurrency>string</BuyingCurrency>
<SalePrice>double</SalePrice>
<SaleCurrency>string</SaleCurrency>
</SpecialPrice>
<SpecialPrice>
<OrdNum>int</OrdNum>
<BuyingPrice>double</BuyingPrice>
<BuyingCurrency>string</BuyingCurrency>
<SalePrice>double</SalePrice>
<SaleCurrency>string</SaleCurrency>
</SpecialPrice>
</SpecialPrices>
<CancelRules>
<ResCancelRules>
<OrdNum>int</OrdNum>
<BeginDate>dateTime</BeginDate>
<EndDate>dateTime</EndDate>
<ForSelling>boolean</ForSelling>
<ApplyDay>int</ApplyDay>
<Percent>int</Percent>
<SPONo>int</SPONo>
</ResCancelRules>
<ResCancelRules>
<OrdNum>int</OrdNum>
<BeginDate>dateTime</BeginDate>
<EndDate>dateTime</EndDate>
<ForSelling>boolean</ForSelling>
<ApplyDay>int</ApplyDay>
<Percent>int</Percent>
<SPONo>int</SPONo>
</ResCancelRules>
</CancelRules>
</Params>
</SaveThirdPartyReservation>
</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>
<SaveThirdPartyReservationResponse xmlns="http://www.sansejour.com/">
<SaveThirdPartyReservationResult>
<VccPaymentStatus>string</VccPaymentStatus>
<Successful>boolean</Successful>
<VoucherNo>string</VoucherNo>
<Message>string</Message>
</SaveThirdPartyReservationResult>
</SaveThirdPartyReservationResponse>
</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 /swsgroup4/Reservation.asmx HTTP/1.1
Host: b2b.peninsula.com.tr
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>
<SaveThirdPartyReservation xmlns="http://www.sansejour.com/">
<token>string</token>
<Params>
<VccPaymentEnabled>boolean</VccPaymentEnabled>
<VccInfo>
<ExpirationDate>string</ExpirationDate>
<SecurityNumber>string</SecurityNumber>
<HolderName>string</HolderName>
<CreditCardNumber>string</CreditCardNumber>
<TotalPaymentAmount>float</TotalPaymentAmount>
<CurrencyCode>USD or EUR or GBP or JPY or CHF or CAD or AUD or CNY or TRY or RUB or KRW or INR or BRL or ZAR or SGD or HKD or NZD or MXN or SAR or SEK or NOK or DKK or PLN or HUF</CurrencyCode>
</VccInfo>
<IsChannelManagerBooking>boolean</IsChannelManagerBooking>
<ProviderName>string</ProviderName>
<ri>
<OnlyCalculate>boolean</OnlyCalculate>
<TourOp>string</TourOp>
<Voucher>string</Voucher>
<source>int</source>
<Group1>string</Group1>
<Group2>string</Group2>
<Group3>string</Group3>
<Group4>string</Group4>
<Group5>string</Group5>
<Group6>string</Group6>
<GroupNum>string</GroupNum>
<OnlyHotel>boolean</OnlyHotel>
<voucherNote>string</voucherNote>
<customer>
<Customer xsi:nil="true" />
<Customer xsi:nil="true" />
</customer>
<resHotel>
<ResHotel xsi:nil="true" />
<ResHotel xsi:nil="true" />
</resHotel>
<OwnProvider>boolean</OwnProvider>
<ExternalSupplierResNo>string</ExternalSupplierResNo>
<SejResType>string</SejResType>
<DontWaitForCalculation>boolean</DontWaitForCalculation>
</ri>
<SpecialPrices>
<SpecialPrice>
<OrdNum>int</OrdNum>
<BuyingPrice>double</BuyingPrice>
<BuyingCurrency>string</BuyingCurrency>
<SalePrice>double</SalePrice>
<SaleCurrency>string</SaleCurrency>
</SpecialPrice>
<SpecialPrice>
<OrdNum>int</OrdNum>
<BuyingPrice>double</BuyingPrice>
<BuyingCurrency>string</BuyingCurrency>
<SalePrice>double</SalePrice>
<SaleCurrency>string</SaleCurrency>
</SpecialPrice>
</SpecialPrices>
<CancelRules>
<ResCancelRules>
<OrdNum>int</OrdNum>
<BeginDate>dateTime</BeginDate>
<EndDate>dateTime</EndDate>
<ForSelling>boolean</ForSelling>
<ApplyDay>int</ApplyDay>
<Percent>int</Percent>
<SPONo>int</SPONo>
</ResCancelRules>
<ResCancelRules>
<OrdNum>int</OrdNum>
<BeginDate>dateTime</BeginDate>
<EndDate>dateTime</EndDate>
<ForSelling>boolean</ForSelling>
<ApplyDay>int</ApplyDay>
<Percent>int</Percent>
<SPONo>int</SPONo>
</ResCancelRules>
</CancelRules>
</Params>
</SaveThirdPartyReservation>
</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>
<SaveThirdPartyReservationResponse xmlns="http://www.sansejour.com/">
<SaveThirdPartyReservationResult>
<VccPaymentStatus>string</VccPaymentStatus>
<Successful>boolean</Successful>
<VoucherNo>string</VoucherNo>
<Message>string</Message>
</SaveThirdPartyReservationResult>
</SaveThirdPartyReservationResponse>
</soap12:Body>
</soap12:Envelope>