wsReservation


Click here for a complete list of operations.

CreatePNR

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/CreatePNR"

<?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>
    <CreatePNR xmlns="http://ws.travelsuite.com.br">
      <request>
        <Contractid>int</Contractid>
        <AgencyReference>
          <B2BCustomerId>int</B2BCustomerId>
          <AgencyRef>string</AgencyRef>
          <AgencyName>string</AgencyName>
          <AgencyEmail>string</AgencyEmail>
          <Phone1>string</Phone1>
          <B2CCustomerId>int</B2CCustomerId>
          <AgentName>string</AgentName>
          <AgentRef>string</AgentRef>
          <AgentEmail>string</AgentEmail>
          <Address>string</Address>
          <City>string</City>
          <Country>string</Country>
          <DocNumber1>string</DocNumber1>
          <DocType1>CPF or RG or CNPJ</DocType1>
          <DocNumber2>string</DocNumber2>
          <Phone2>string</Phone2>
          <DocType2>CPF or RG or CNPJ</DocType2>
          <Comment>string</Comment>
          <Nationality>string</Nationality>
          <Office>string</Office>
          <ISB2B>int</ISB2B>
        </AgencyReference>
        <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>
        <ChannelId>int</ChannelId>
        <PnrGroup>string</PnrGroup>
        <IdRede>int</IdRede>
      </request>
    </CreatePNR>
  </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>
    <CreatePNRResponse xmlns="http://ws.travelsuite.com.br">
      <CreatePNRResult>long</CreatePNRResult>
    </CreatePNRResponse>
  </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>
    <CreatePNR xmlns="http://ws.travelsuite.com.br">
      <request>
        <Contractid>int</Contractid>
        <AgencyReference>
          <B2BCustomerId>int</B2BCustomerId>
          <AgencyRef>string</AgencyRef>
          <AgencyName>string</AgencyName>
          <AgencyEmail>string</AgencyEmail>
          <Phone1>string</Phone1>
          <B2CCustomerId>int</B2CCustomerId>
          <AgentName>string</AgentName>
          <AgentRef>string</AgentRef>
          <AgentEmail>string</AgentEmail>
          <Address>string</Address>
          <City>string</City>
          <Country>string</Country>
          <DocNumber1>string</DocNumber1>
          <DocType1>CPF or RG or CNPJ</DocType1>
          <DocNumber2>string</DocNumber2>
          <Phone2>string</Phone2>
          <DocType2>CPF or RG or CNPJ</DocType2>
          <Comment>string</Comment>
          <Nationality>string</Nationality>
          <Office>string</Office>
          <ISB2B>int</ISB2B>
        </AgencyReference>
        <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>
        <ChannelId>int</ChannelId>
        <PnrGroup>string</PnrGroup>
        <IdRede>int</IdRede>
      </request>
    </CreatePNR>
  </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>
    <CreatePNRResponse xmlns="http://ws.travelsuite.com.br">
      <CreatePNRResult>long</CreatePNRResult>
    </CreatePNRResponse>
  </soap12:Body>
</soap12:Envelope>