我使用BargainFinderMax REST API。 我不能为孩子获得票价,但我得到的消息是“CHD不适用 - 适用于使用 - 验证限制”和成人票价。
我尝试使用TPA_Extensions“:{”XOFares“:{”Value“:true} 没有成功。也许我搞乱别的什么。请指教。这是我的要求:
{
"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"
}
}
}
}
}
答案 0 :(得分:0)
儿童代码是CNN
根据Bargain Finder最大API信息页面上的示例请求
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1" />
<PassengerTypeQuantity Code="CNN" Quantity="1" />
<PassengerTypeQuantity Code="INF" Quantity="1" />
</AirTravelerAvail>
答案 1 :(得分:0)
便宜的票价休息api提供儿童和婴儿票价。
{
"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"
}
}
}
}
}