Search code examples
xmlsabre

Sabre Web service error CHILD AGE DATA REQUIRED - USE *C2/C02-*C11


I want to create a PNR for One Adult and One Child. As given below i passed passenger details to "PassengerDetailsRQ".

<PassengerDetailsRQ xmlns="http://services.sabre.com/sp/pd/v3_2" version="3.2.0" IgnoreOnError="false" HaltOnError="false">
      <PostProcessing IgnoreAfter="false" RedisplayReservation="false" UnmaskCreditCard="true">
        <EndTransactionRQ>
          <EndTransaction Ind="true" />
          <Source ReceivedFrom="SWS" />
        </EndTransactionRQ>
      </PostProcessing>
      <TravelItineraryAddInfoRQ>
        <AgencyInfo>
          <Address>
            <AddressLine>Address Address </AddressLine>
            <CityName>LONDON</CityName>
            <CountryCode>US</CountryCode>
            <PostalCode>55000</PostalCode>
            <StreetNmbr>I-2 JAVED</StreetNmbr>
            <VendorPrefs>
              <Airline Hosted="false" />
            </VendorPrefs>
          </Address>
          <Ticketing PseudoCityCode="XF18" QueueNumber="222" TicketTimeLimit="02-25T08:00" ShortText="TEST Short Text" TicketType="7TAW" />
        </AgencyInfo>
        <CustomerInfo>
          <ContactNumbers>
            <ContactNumber LocationCode="ISB" NameNumber="1.1" Phone="817-555-1212" PhoneUseType="H" />
          </ContactNumbers>
          <Email Address="[email protected]" NameNumber="1.1" />
          <PersonName Infant="false" NameNumber="1.1" NameReference="ASD123" PassengerType="ADT">
            <GivenName>AMIR</GivenName>
            <Surname>KHAN</Surname>
          </PersonName>
          <PersonName Infant="false" NameNumber="2.1" NameReference="ASD123" PassengerType="C04">
            <GivenName>SALMAN</GivenName>
            <Surname>KHAN</Surname>
          </PersonName>
        </CustomerInfo>
      </TravelItineraryAddInfoRQ>
    </PassengerDetailsRQ>

//Response

<PassengerDetailsRS xmlns="http://services.sabre.com/sp/pd/v3_2">
      <ApplicationResults xmlns="http://services.sabre.com/STL_Payload/v02_01" status="Complete">
        <Success timeStamp="2016-02-17T09:16:15.982-06:00" />
        <Warning type="BusinessLogic" timeStamp="2016-02-17T09:16:15.981-06:00">
          <SystemSpecificResults>
            <Message code="WARN.SWS.HOST.ERROR_IN_RESPONSE">CHILD AGE DATA REQUIRED - USE *C2/C02-*C11</Message>
          </SystemSpecificResults>
        </Warning>
      </ApplicationResults>
    </PassengerDetailsRS>

Why it Needs Child age? as i mention C04 in the request for child.?

Please help me. Thanks in advance


Solution

  • I was using ASD123 in NameReference parameter. The Issue was resolved by using the code like

    <PersonName Infant="false" NameNumber="2.1" NameReference="C04" PassengerType="CNN">
            <GivenName>SALMAN</GivenName>
            <Surname>KHAN</Surname>
          </PersonName>