2017-07-26 4 views
-1

Ich verwende BargainFinderMax REST API. Ich kann keine Fahrpreise für ein Kind bekommen, aber stattdessen bekomme ich die Nachricht "CHD NICHT ANWENDBAR - ADT FARE BENUTZT - VERIFIZIERE BESCHRÄNKUNGEN" mit Erwachsenentarif.BargainFinderMax REST API gibt keinen Tarif für Kind zurück

Ich versuchte TPA_Extensions zu verwenden ": {" XOFares ": {" Wert ":... True} ohne Erfolg Vielleicht sonst ich etwas bin durcheinander beraten bitte ist hier meine Anfrage:

{ 

"OTA_AirLowFareSearchRQ": { 

    "Target": "Production", 

     "POS": { 

      "Source": [{ 

       "PseudoCityCode":"F9CE", 

       "RequestorID": { 

        "Type": "1", 

        "ID": "1", 

        "CompanyName": { 



        } 

      } 

     }] 

     }, 

     "OriginDestinationInformation": [{ 

      "RPH": "1", 

      "DepartureDateTime": "2017-07-28T11:00:00", 

      "OriginLocation": { 

      "LocationCode": "DFW" 

     }, 

      "DestinationLocation": { 

       "LocationCode": "CDG" 

     }, 

      "TPA_Extensions": { 

      "SegmentType": { 

        "Code": "O" 

       } 

     } 

    }, 

     { 

     "RPH": "2", 

      "DepartureDateTime": "2017-08-08T11:00:00", 

      "OriginLocation": { 

      "LocationCode": "CDG" 

     }, 

      "DestinationLocation": { 

       "LocationCode": "DFW" 

     }, 

      "TPA_Extensions": { 

      "SegmentType": { 

        "Code": "O" 

       } 

     } 

    }], 

     "TravelPreferences": { 

      "ValidInterlineTicket": true, 

      "CabinPref": [{ 

      "Cabin": "Y", 

      "PreferLevel": "Preferred" 

      }], 

      "TPA_Extensions": { 

      "TripType": { 

        "Value": "Return" 

      }, 

       "LongConnectTime": { 

        "Min": 780, 

       "Max": 1200, 

        "Enable": true 

       }, 

       "ExcludeCallDirectCarriers": { 

        "Enabled": true 

      }, 

       "XOFares": { 
        "Value": true 
       } 

     } 

    }, 

     "TravelerInfoSummary": { 

      "SeatsRequested": [2], 

      "AirTravelerAvail": [{ 

       "PassengerTypeQuantity": [{ 

       "Code": "ADT", 

        "Quantity": 1 

       }, 
       { 

       "Code": "CHD", 

        "Quantity": 1, 
        "Age":  6 

       }] 

      }] 

     }, 

     "TPA_Extensions": { 

     "IntelliSellTransaction": { 

      "RequestType": { 

        "Name": "50ITINS" 

      } 

     } 

    } 

} 

} 

Antwort

0

Code für Kinder ist CNN

nach Muster Anfrage bei Bargain Finder Max API Informationsseite

<AirTravelerAvail> 
<PassengerTypeQuantity Code="ADT" Quantity="1" /> 
<PassengerTypeQuantity Code="CNN" Quantity="1" /> 
<PassengerTypeQuantity Code="INF" Quantity="1" /> 
</AirTravelerAvail> 
+0

Vielen Dank, Sie haben Recht. Es funktioniert jetzt. Es sieht so aus, als ob der Kindercode vom letzten Jahr oder so geändert wurde. –

0

Schnäppchen-Tarif Rest api Kind und Kleinkind-Tarif bieten.

{ 
"OTA_AirLowFareSearchRQ": { 
"Target": "Production", 
"POS": { 
    "Source": [{ 
    "PseudoCityCode": "F9CE", 
    "RequestorID": { 
     "Type": "1", 
     "ID": "1", 
     "CompanyName": { 

     } 
    } 
    }] 
}, 
"OriginDestinationInformation": [{ 
    "RPH": "1", 
    "DepartureDateTime": "2017-10-10T11:00:00", 
    "OriginLocation": { 
    "LocationCode": "EWR" 
    }, 
    "DestinationLocation": { 
    "LocationCode": "DEL" 
    }, 
    "TPA_Extensions": { 
    "SegmentType": { 
     "Code": "O" 
    } 
    } 
}], 
"TravelPreferences": { 
    "ValidInterlineTicket": true, 
    "CabinPref": [{ 
    "Cabin": "Y", 
    "PreferLevel": "Preferred" 
    }], 
    "TPA_Extensions": { 
    "TripType": { 
     "Value": "OneWay" 
    }, 
    "LongConnectTime": { 
     "Min": 780, 
     "Max": 1200, 
     "Enable": true 
    }, 
    "ExcludeCallDirectCarriers": { 
     "Enabled": true 
    } 
    } 
}, 
"TravelerInfoSummary": { 
    "SeatsRequested": [3], 
    "AirTravelerAvail": [{ 
    "PassengerTypeQuantity": [{ 
     "Code": "ADT", 
     "Quantity": 1 
     }, 
     { 
     "Code": "CNN", 
     "Quantity": 1 
     }, 
     { 
     "Code": "INF", 
     "Quantity": 1 
     } 
    ] 
    }] 
}, 
"TPA_Extensions": { 
    "IntelliSellTransaction": { 
    "RequestType": { 
     "Name": "50ITINS" 
     } 
     } 
    } 
    } 
} 
+0

Danke, ich habe ein Problem basierend auf der ersten Antwort im XML-Format behoben. Ich habe meine JSON-Anfrage geändert. –

Verwandte Themen