I am trying to create a Passenger Name Record (PNR) for a one-way flight with one adult, one child, and one infant using the following JSON request in Postman:
{
"CreatePassengerNameRecordRQ": {
"version": "2.4.0",
"targetCity": "XXXX",
"haltOnAirPriceError": true,
"TravelItineraryAddInfo": {
"AgencyInfo": {
"Ticketing": {
"TicketType": "XXXX"
},
"Address": {
"AddressLine": "123 Main St, New York, NY, 10001",
"CityName": "New York",
"PostalCode": "12345",
"VendorPrefs": {
"Airline": {
"Hosted": true
}
}
}
},
"CustomerInfo": {
"ContactNumbers": {
"ContactNumber": [
{
"NameNumber": "1.1",
"Phone": "817-555-1212",
"PhoneUseType": "9"
}
]
},
"PersonName": [
{
"NameNumber": "1.1",
"GivenName": "Yoshi Miss",
"Surname": "Jefferson",
"PassengerType": "ADT",
"Infant": false
},
{
"NameNumber": "1.1",
"GivenName": "INF",
"Surname": "Wilkinson",
"PassengerType": "INF",
"NameReference": "I01",
"Infant": true
}
],
"Email": [
{
"Address": "[email protected]",
"NameNumber": "1.1"
}
]
}
},
"SpecialReqDetails": {
"SpecialService": {
"SpecialServiceInfo": {
"SecureFlight": [
{
"SegmentNumber": "A",
"PersonName": {
"NameNumber": "1.1",
"GivenName": "Yoshi Miss",
"Surname": "Jefferson",
"Gender": "F"
}
},
{
"SegmentNumber": "A",
"PersonName": {
"NameNumber": "2.1",
"GivenName": "INF",
"Surname": "Wilkinson",
"Gender": "F"
}
}
],
"Service": [
{
"SSR_Code": "OTHS",
"Text": "CC MANZOOR",
"PersonName": {
"NameNumber": "1.1"
},
"SegmentNumber": "1"
},
{
"SSR_Code": "INFT",
"Text": "Wilkinson/INF/10NOV24",
"PersonName": {
"NameNumber": "1.1"
}
},
{
"SSR_Code": "CTCM",
"Text": "8175551212",
"PersonName": {
"NameNumber": "1.1"
},
"SegmentNumber": "1"
},
{
"SSR_Code": "CTCE",
"Text": "[email protected]",
"PersonName": {
"NameNumber": "1.1"
},
"SegmentNumber": "1"
}
],
"AdvancePassenger": [
{
"Document": {
"IssueCountry": "PK",
"NationalityCountry": "PK",
"ExpirationDate": "2029-07-26",
"Number": "DY0714511",
"Type": "P"
},
"PersonName": {
"NameNumber": "1.1",
"GivenName": "Yoshi Miss",
"Surname": "Jefferson",
"Gender": "F",
"DateOfBirth": "1990-06-24"
},
"SegmentNumber": "A"
},
{
"Document": {
"IssueCountry": "PK",
"NationalityCountry": "PK",
"ExpirationDate": "2029-02-20",
"Number": "DY0714511",
"Type": "P"
},
"PersonName": {
"NameNumber": "1.1",
"GivenName": "Evelyn INF",
"Surname": "Wilkinson",
"Gender": "F",
"DateOfBirth": "2024-10-10"
},
"SegmentNumber": "A"
}
]
}
}
},
"AirBook": {
"OriginDestinationInformation": {
"FlightSegment": [
{
"DepartureDateTime": "2025-01-04T12:20:00",
"ArrivalDateTime": "2025-01-04T14:50:00",
"FlightNumber": "625",
"NumberInParty": "1",
"ResBookDesigCode": "Y",
"Status": "NN",
"DestinationLocation": {
"LocationCode": "DXB"
},
"MarketingAirline": {
"Code": "EK",
"FlightNumber": "625"
},
"OriginLocation": {
"LocationCode": "LHE"
}
}
]
},
"RedisplayReservation": {
"NumAttempts": 5,
"WaitInterval": 100
}
},
"AirPrice": [
{
"PriceRequestInformation": {
"Retain": true,
"OptionalQualifiers": {
"FOP_Qualifiers": {
"BasicFOP": {
"Type": "CA"
}
},
"PricingQualifiers": {
"PassengerType": [
{
"Code": "ADT",
"Quantity": "1"
},
{
"Code": "INF",
"Quantity": "1"
}
]
}
}
}
}
],
"PostProcessing": {
"EndTransaction": {
"Source": {
"ReceivedFrom": "TEST"
},
"Email": {
"Ind": true
}
},
"RedisplayReservation": {},
"PricingInterval": {
"waitInterval": 100
}
}
}
}
the response that im getting is as follow
"ApplicationResults": {
"status": "Complete",
"Success": [
{
"timeStamp": "2024-12-07T14:42:07.862Z"
}
],
"Warning": [
{
"type": "BusinessLogic",
"timeStamp": "2024-12-07T14:42:04.278Z",
"SystemSpecificResults": [
{
"Message": [
{
"code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
"content": "TravelItineraryAddInfoLLSRQ: .PASSENGER TYPE ENTERED VALID ONLY FOR INFANT NAME"
}
]
}
]
},
{
"type": "BusinessLogic",
"timeStamp": "2024-12-07T14:42:07.021Z",
"SystemSpecificResults": [
{
"Message": [
{
"code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
"content": "SpecialServiceLLSRQ: INVALID COUNTRY CODE - SEE HCCC/"
}
]
}
]
},
{
"type": "BusinessLogic",
"timeStamp": "2024-12-07T14:42:07.161Z",
"SystemSpecificResults": [
{
"Message": [
{
"code": "WARN.SWS.HOST.ERROR_IN_RESPONSE",
"content": "EndTransactionLLSRQ: INFANT DETAILS REQUIRED IN SSR - ENTER 3INFT/..."
}
]
}
]
},
{
"type": "BusinessLogic",
"timeStamp": "2024-12-07T14:42:07.543Z",
"SystemSpecificResults": [
{
"Message": [
{
"code": "WARN.SWS.HOST.WARNING_RESPONSE",
"content": "EndTransactionLLSRQ: TTY REQ PEND"
}
]
}
]
}
]
What changes are required in my JSON request to fix these warnings? Any guidance on handling infants and associating them correctly in the request is appreciated.