在指定SisterDestinationMileage.Number时,SABRE Bargain Max Finder会报错

编程语言 2026-07-08

当我进行航班搜索并使用 SisterDestinationMileage.Number > 0 时,BFM会返回错误。是因为账户限制吗?

POST v4 REST端点:https://api.platform.sabre.com/v4/offers/shop

请求示例:

{
    "OTA_AirLowFareSearchRQ": {
        "POS": {
            "Source": [
                {
                    "RequestorID": {
                        "CompanyName": {
                            "Code": "**secured**",
                            "CodeContext": "Context"
                        },
                        "Type": "1",
                        "ID": "1"
                    },
                    "PseudoCityCode": "**secured**"
                }
            ]
        },
        "OriginDestinationInformation": [
            {
                "DepartureWindow": "00002359",
                "ArrivalDateTime": "2026-07-23T00:00:00",
                "ArrivalWindow": "06001700",
                "OriginLocation": {
                    "LocationCode": "ATL",
                    "CodeContext": "IATA",
                    "LocationType": "A"
                },
                "DestinationLocation": {
                    "LocationCode": "JFK",
                    "CodeContext": "IATA",
                    "LocationType": "A"
                },
                "TPA_Extensions": {
                    "SisterDestinationMileage": {
                       "AllowBorderCross": true,                        
                        "Number": 50
                    },
                    "SegmentType": {
                        "Code": "O"
                    },
                    "MaxOneWayOptions": {
                        "Value": 100
                    }
                },
                "RPH": "0"
            },
            {
                "DepartureDateTime": "2026-08-19T00:00:00",
                "DepartureWindow": "06001700",
                "ArrivalWindow": "00002359",
                "OriginLocation": {
                    "LocationCode": "JFK",
                    "CodeContext": "IATA",
                    "LocationType": "A"
                },
                "DestinationLocation": {
                    "LocationCode": "ATL",
                    "CodeContext": "IATA",
                    "LocationType": "A"
                },
                "TPA_Extensions": {
                    "SegmentType": {
                        "Code": "O"
                    },
                    "MaxOneWayOptions": {
                        "Value": 100
                    },
                    "SisterOriginMileage": {
                        "AllowBorderCross": true,
                        "Number": 0
                    }
                },
                "RPH": "1"
            }
        ],
        "TravelPreferences": {
            "VendorPref": [],
            "FlightTypePref": {
                "MaxConnections": "1",
                "PreferLevel": "Preferred"
            },
            "CabinPref": [
                {
                    "Cabin": "Economy",
                    "PreferLevel": "Preferred"
                }
            ],
            "TPA_Extensions": {
                "ExcludeVendorPref": [
                    {
                        "Code": "WN"
                    }
                ],
                "DataSources": {
                    "ATPCO": "Enable",
                    "LCC": "Disable",
                    "NDC": "Disable"
                },
                "JumpCabinLogic": {
                    "Disabled": true
                },
                "KeepSameCabin": {
                    "Enabled": true
                },
                "FlexibleFares": {
                    "FareParameters": [
                        {
                            "RefundPenalty": {
                                "Ind": true
                            },
                            "VoluntaryChanges": {
                                "Match": "Info",
                                "Penalty": [
                                    {}
                                ]
                            }
                        }
                    ]
                },
                "FlightStopsAsConnections": {
                    "Ind": true
                }
            }
        },
        "TravelerInfoSummary": {
            "AirTravelerAvail": [
                {
                    "PassengerTypeQuantity": [
                        {
                            "Code": "GVT",
                            "Quantity": 1
                        }
                    ]
                }
            ],
            "PriceRequestInformation": {
                "TPA_Extensions": {
                    "Priority": {
                        "Price": {
                            "Priority": 3
                        },
                        "DirectFlights": {
                            "Priority": 1
                        },
                        "Time": {
                            "Priority": 2
                        },
                        "Vendor": {
                            "Priority": 4
                        }
                    },
                    "Indicators": {
                        "RefundPenalty": {
                            "Ind": false
                        }
                    }
                },
                "CurrencyCode": "USD"
            }
        },
        "TPA_Extensions": {
            "IntelliSellTransaction": {
                "RequestType": {
                    "Name": "200ITINS"
                }
            },
            "MultiTicket": {
                "DisplayPolicy": "SOW"
            }
        },
        "Version": "v4"
    }
}

响应:

{
    "groupedItineraryResponse": {
        "version": "6.7.2",
        "messages": [
            {
                "severity": "Info",
                "type": "SERVER",
                "code": "secured-TN-00-2026-05-00-BR2T",
                "text": "27131"
            },
            {
                "severity": "Info",
                "type": "WORKERTHREAD",
                "code": "TRANSACTIONID",
                "text": "*secured*"
            },
            {
                "severity": "Info",
                "type": "DRE",
                "code": "RULEID",
                "text": "24825"
            },
            {
                "severity": "Info",
                "type": "DEFAULT",
                "code": "RULEID",
                "text": "31285"
            },
            {
                "severity": "Error",
                "type": "IF2",
                "code": "PROCESS",
                "shortCode": "CFG:201",
                "text": "Incorrect customer configuration"
            },
            {
                "severity": "Info",
                "type": "SERVER",
                "code": "MSG",
                "value": "No Availability"
            },
            {
                "severity": "Error",
                "type": "ERR",
                "code": "ERR",
                "text": "Error during Processing"
            }
        ],
        "statistics": {
            "itineraryCount": 0
        }
    }
}

解决方案

根据我的测试,这个字段与请求中的其他参数冲突。若将其移除,应该就能得到一个成功的响应。

编辑:不再合并sisterlocation

"FlexibleFares": {
    "FareParameters": [{
            "RefundPenalty": {
                "Ind": true
            },
            "VoluntaryChanges": {
                "Match": "Info",
                "Penalty": [{}
                ]
            }
        }
    ]
},

响应:

        "statistics": {
            "itineraryCount": 200,
            "oneWay": 99
        },
站内所有文章版权归属LeftHeroAI导航站,无授权禁止任何主体转载、抄袭、复制内容,亦不得私自架设镜像站点。一经侵权,本站将通过法律途径追责。

相关文章