wsReservation


Click here for a complete list of operations.

CreateB2CReservation

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 /ResService/wsReservation.asmx HTTP/1.1
Host: tsuiteservice.it.ws.travelexplorer.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ws.travelsuite.com.br/CreateB2CReservation"

<?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>
    <CreateB2CReservation xmlns="http://ws.travelsuite.com.br">
      <ContractId>int</ContractId>
      <CustomerReference>
        <B2CCustomerId>int</B2CCustomerId>
        <CustomerRef>string</CustomerRef>
        <Name>string</Name>
        <Address>string</Address>
        <Country>string</Country>
        <Phone>string</Phone>
        <Fax>string</Fax>
        <DocNumber1>string</DocNumber1>
        <DocType2>CPF or RG or CNPJ</DocType2>
        <DocNumber2>string</DocNumber2>
        <City>string</City>
        <DocType1>CPF or RG or CNPJ</DocType1>
        <Comment>string</Comment>
        <_Number>int</_Number>
        <Street2>string</Street2>
        <Email>string</Email>
        <State>string</State>
        <Zip>string</Zip>
        <Reference>string</Reference>
        <BirthDate>dateTime</BirthDate>
        <CustomerIpAddress>string</CustomerIpAddress>
        <Sex>string</Sex>
        <CellPhone>string</CellPhone>
        <SecundaryEmail>string</SecundaryEmail>
        <AddressComplement>string</AddressComplement>
        <Neighborhood>string</Neighborhood>
        <Number>int</Number>
      </CustomerReference>
      <PaxReference>
        <PaxData>
          <PaxType>ADT or CNN or INF or SNR</PaxType>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Age>short</Age>
          <Phone>string</Phone>
          <Email>string</Email>
          <Doc>string</Doc>
          <DocExpDate>dateTime</DocExpDate>
          <DocCountry>string</DocCountry>
          <Fidelity>string</Fidelity>
          <FidelityExpDate>dateTime</FidelityExpDate>
          <FidelityDob>dateTime</FidelityDob>
          <BornDate>dateTime</BornDate>
          <Sex>string</Sex>
          <RedressNumber>string</RedressNumber>
          <Nationality>string</Nationality>
          <FullName>string</FullName>
          <Passport>string</Passport>
          <PassportValidity>dateTime</PassportValidity>
          <PassportName>string</PassportName>
        </PaxData>
        <PaxData>
          <PaxType>ADT or CNN or INF or SNR</PaxType>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Age>short</Age>
          <Phone>string</Phone>
          <Email>string</Email>
          <Doc>string</Doc>
          <DocExpDate>dateTime</DocExpDate>
          <DocCountry>string</DocCountry>
          <Fidelity>string</Fidelity>
          <FidelityExpDate>dateTime</FidelityExpDate>
          <FidelityDob>dateTime</FidelityDob>
          <BornDate>dateTime</BornDate>
          <Sex>string</Sex>
          <RedressNumber>string</RedressNumber>
          <Nationality>string</Nationality>
          <FullName>string</FullName>
          <Passport>string</Passport>
          <PassportValidity>dateTime</PassportValidity>
          <PassportName>string</PassportName>
        </PaxData>
      </PaxReference>
      <Language>pt_BR or es_ES or en_US or Default</Language>
      <Currency>string</Currency>
      <IsPackage>boolean</IsPackage>
    </CreateB2CReservation>
  </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>
    <CreateB2CReservationResponse xmlns="http://ws.travelsuite.com.br">
      <CreateB2CReservationResult>long</CreateB2CReservationResult>
    </CreateB2CReservationResponse>
  </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 /ResService/wsReservation.asmx HTTP/1.1
Host: tsuiteservice.it.ws.travelexplorer.com.br
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>
    <CreateB2CReservation xmlns="http://ws.travelsuite.com.br">
      <ContractId>int</ContractId>
      <CustomerReference>
        <B2CCustomerId>int</B2CCustomerId>
        <CustomerRef>string</CustomerRef>
        <Name>string</Name>
        <Address>string</Address>
        <Country>string</Country>
        <Phone>string</Phone>
        <Fax>string</Fax>
        <DocNumber1>string</DocNumber1>
        <DocType2>CPF or RG or CNPJ</DocType2>
        <DocNumber2>string</DocNumber2>
        <City>string</City>
        <DocType1>CPF or RG or CNPJ</DocType1>
        <Comment>string</Comment>
        <_Number>int</_Number>
        <Street2>string</Street2>
        <Email>string</Email>
        <State>string</State>
        <Zip>string</Zip>
        <Reference>string</Reference>
        <BirthDate>dateTime</BirthDate>
        <CustomerIpAddress>string</CustomerIpAddress>
        <Sex>string</Sex>
        <CellPhone>string</CellPhone>
        <SecundaryEmail>string</SecundaryEmail>
        <AddressComplement>string</AddressComplement>
        <Neighborhood>string</Neighborhood>
        <Number>int</Number>
      </CustomerReference>
      <PaxReference>
        <PaxData>
          <PaxType>ADT or CNN or INF or SNR</PaxType>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Age>short</Age>
          <Phone>string</Phone>
          <Email>string</Email>
          <Doc>string</Doc>
          <DocExpDate>dateTime</DocExpDate>
          <DocCountry>string</DocCountry>
          <Fidelity>string</Fidelity>
          <FidelityExpDate>dateTime</FidelityExpDate>
          <FidelityDob>dateTime</FidelityDob>
          <BornDate>dateTime</BornDate>
          <Sex>string</Sex>
          <RedressNumber>string</RedressNumber>
          <Nationality>string</Nationality>
          <FullName>string</FullName>
          <Passport>string</Passport>
          <PassportValidity>dateTime</PassportValidity>
          <PassportName>string</PassportName>
        </PaxData>
        <PaxData>
          <PaxType>ADT or CNN or INF or SNR</PaxType>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Age>short</Age>
          <Phone>string</Phone>
          <Email>string</Email>
          <Doc>string</Doc>
          <DocExpDate>dateTime</DocExpDate>
          <DocCountry>string</DocCountry>
          <Fidelity>string</Fidelity>
          <FidelityExpDate>dateTime</FidelityExpDate>
          <FidelityDob>dateTime</FidelityDob>
          <BornDate>dateTime</BornDate>
          <Sex>string</Sex>
          <RedressNumber>string</RedressNumber>
          <Nationality>string</Nationality>
          <FullName>string</FullName>
          <Passport>string</Passport>
          <PassportValidity>dateTime</PassportValidity>
          <PassportName>string</PassportName>
        </PaxData>
      </PaxReference>
      <Language>pt_BR or es_ES or en_US or Default</Language>
      <Currency>string</Currency>
      <IsPackage>boolean</IsPackage>
    </CreateB2CReservation>
  </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>
    <CreateB2CReservationResponse xmlns="http://ws.travelsuite.com.br">
      <CreateB2CReservationResult>long</CreateB2CReservationResult>
    </CreateB2CReservationResponse>
  </soap12:Body>
</soap12:Envelope>