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 /sws/Reservation.asmx HTTP/1.1
Host: partners.teddykam.com
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>
        <ri>
          <OnlyCalculate>boolean</OnlyCalculate>
          <Voucher>string</Voucher>
          <source>int</source>
          <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>
          <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>
        <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 /sws/Reservation.asmx HTTP/1.1
Host: partners.teddykam.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>
    <SaveThirdPartyReservation xmlns="http://www.sansejour.com/">
      <token>string</token>
      <Params>
        <ri>
          <OnlyCalculate>boolean</OnlyCalculate>
          <Voucher>string</Voucher>
          <source>int</source>
          <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>
          <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>
        <Successful>boolean</Successful>
        <VoucherNo>string</VoucherNo>
        <Message>string</Message>
      </SaveThirdPartyReservationResult>
    </SaveThirdPartyReservationResponse>
  </soap12:Body>
</soap12:Envelope>