- FR24_API_V2.0
- 指南
- API 参考
- OrderChangeInforming 订单信息变更通知
- shopping 航班搜索接口POST
- pricing 校验接口POST
- booking 生单接口POST
- ticketing 申请出票接口POST
- orderDetail 订单详情接口POST
- presaleAncillaryShopping 售前辅营搜索接口POST
- postsaleAncillaryShopping 售后行李搜索接口POST
- seatMap 机型图接口POST
- ancillaryBooking 辅营生单接口POST
- ancillaryPurchase 辅营支付接口POST
- ancillaryOrderDetail 辅营订单详情POST
- changeReshop 改期搜索接口POST
- reissueRequest 改期申请接口POST
- refundRequest 退票申请接口POST
- refundConfirming 退票确认接口POST
- voidRequest 废票提交接口POST
- fileUpload 文件上传POST
- selectBalance 余额查询接口POST
- 关于我们
pricing 校验接口
POST
/api/new/pricing.do
仅可使用真实乘客预定数据,不支持使用pricing接口更新缓存,会根据协议判定校验生单转化率。
请求参数
Header 参数
Accept-Encoding
string
必需
默认值:
gzip, deflate, br
content-Type
string
响应格式
默认值:
application/json
appKey
string
用户账户
默认值:
{{appKey}}
Body 参数application/json
authentication
object
用户认证信息
sign
string
签名
timestamp
string
使用 unix 时间戳
offerId
string
shoppingRS返回的唯一标识offerId
adultNum
integer
成人乘客数
>= 1<= 9
默认值:
0
childNum
integer
儿童乘客数
>= 0<= 9
默认值:
0
infantNum
integer
婴儿乘客数
>= 0<= 9
默认值:
0
seriesTraceId
string
上一个业务请求接口返回的traceId
seriesRsTime
number
上一个业务请求接口,从请求该接口到获取结果的时长
示例
{
"authentication": {
"sign": "{{sign}}",
"timestamp": "{{timestamp}}"
},
"offerId": "18599004604928000",
"adultNum": 2,
"childNum": 0,
"infantNum": 0,
"seriesTraceId": "queryFlight_NEWAPI250117113553863087",
"seriesRsTime": 1717
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://flight-test.flightroutes24.com/api/new/pricing.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
"authentication": {
"sign": "",
"timestamp": ""
},
"offerId": "18599004604928000",
"adultNum": 2,
"childNum": 0,
"infantNum": 0,
"seriesTraceId": "queryFlight_NEWAPI250117113553863087",
"seriesRsTime": 1717
}'
返回响应
🟢200OK
application/json
Body
traceId
string
追溯码
code
string
状态码
message
string
状态说明
processingTime
number
处理时长
>= 0
data
object
返回的所有数据
offer
array [object {18}]
报价信息
legs
object (行程信息)
行程信息
segments
array [object {16}]
航段信息
示例
{
"traceId": "verify_NEWAPI250117113637244071144",
"code": "000000",
"message": "成功",
"processingTime": 5320,
"data": {
"offer": [
{
"offerId": "18599007684923392",
"legId": "1ebb56358b1c617a18a597543feceb77",
"currency": "CNY",
"platingCarrier": "CX",
"pricePerPax": [
{
"paxType": "ADT",
"baseFare": 581,
"totalTax": 493,
"taxBreakdown": [],
"serviceFee": 10000
}
],
"cabin": [
"Y"
],
"fareBasis": [
"QR21SGAO"
],
"availability": [
"9"
],
"extraInfo": {
"freeBaggageAllowance": [
{
"segmentId": "4453068fd343a3eb89b823fc48cc2cd9",
"cabinBagPc": "1-e-e",
"cabinBagSize": "e-e-e",
"cabinBagWeight": "7-e-e",
"checkedBagPc": "1-e-e",
"checkedBagSize": "e-e-e",
"checkedBagWeight": "e-e-e"
}
]
},
"eligibilityFlag": false,
"eligibilityDetail": null,
"rules": {
"refund": [
{
"paxType": "ADT",
"couponStatus": 0,
"refundPolicy": "withCondition",
"applicableTime": [
null,
0
],
"fullRefundAP": null,
"refundFee": 1539
},
{
"paxType": "ADT",
"couponStatus": 0,
"refundPolicy": "notAllowed",
"applicableTime": [
0,
null
],
"fullRefundAP": null,
"refundFee": null
}
],
"change": [
{
"paxType": "ADT",
"couponStatus": 0,
"changePolicy": "withCondition",
"applicableTime": [
null,
0
],
"changeFee": 513
},
{
"paxType": "ADT",
"couponStatus": 0,
"changePolicy": "notAllowed",
"applicableTime": [
0,
null
],
"changeFee": null
}
]
},
"productType": null,
"productTag": {
"ticketPromise": null,
"refuseDeadline": null,
"ticketingTime": null,
"reschedulePendingTime": null,
"voluntaryRefundTime": null,
"involuntaryRefundTime": null,
"refundCondition": null,
"reissueCondition": null,
"voidingCondition": false,
"voluntaryServiceStandard": null,
"involuntaryServiceStandard": null,
"rescheduleProcessingTime": null,
"productSupplier": null,
"RBDChangedRisk": false,
"fareBrand": [
""
],
"posArea": [
null
]
},
"productSource": "OTH",
"totalPrice": 22148,
"paxInfoRequired": {
"birthday": true,
"gender": true,
"cardNum": false,
"cardType": false,
"cardIssuedPlace": false,
"cardExpiryDate": false,
"nationality": true,
"paxEmail": false,
"paxMobile": false,
"areaCode": false
},
"RBD": [
"Q"
]
}
],
"legs": {
"legId": "1ebb56358b1c617a18a597543feceb77",
"segmentIds": [
"4453068fd343a3eb89b823fc48cc2cd9"
]
},
"segments": [
{
"segmentId": "4453068fd343a3eb89b823fc48cc2cd9",
"duration": 255,
"carrier": "CX",
"flightNo": "636",
"codeShare": false,
"operatingCarrier": null,
"operatingFlightNo": null,
"aircraftCode": "333",
"depAirport": "SIN",
"depTerminal": "4",
"depTime": "2025-04-15T20:10",
"arrAirport": "HKG",
"arrTerminal": "1",
"arrTime": "2025-04-16T00:25",
"stopAirport": null,
"stopDuration": null
}
]
}
}
修改于 2025-06-12 09:36:46