FR24 OpenAPI
  1. API 参考
FR24 OpenAPI
  • FR24_API_V2.0
    • 指南
      • API调用流程
      • 介绍
      • 附录
      • 错误码
    • 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
    • 关于我们
      • API 能力
      • 商务合作
      • 门户网站
  1. API 参考

ancillaryPurchase 辅营支付接口

POST
/api/new/ancillaryPurchase.do
调用该接口支付售后辅营订单。

请求参数

Header 参数
Accept-Encoding
string 
必需
使用gzip压缩格式
默认值:
gzip, deflate, br
content-Type
string 
响应格式
必需
默认值:
application/json
appKey
string 
用户账户
必需
默认值:
{{appKey}}
Body 参数application/json
authentication
object 
用户认证信息
必需
sign
string 
签名
必需
appkey + appsecret + timestamp加密后的字符串,加密见附录
timestamp
string 
使用 unix 时间戳
必需
单位:秒
auxOrderNo
string 
FR24辅营订单号
必需
正则匹配:
^\d*$
partnerAuxOrderNo
string 
FR24辅营订单号
可选
orderNo
string 
机票订单号
可选
currency
string 
币种
必需
totalPrice
number 
辅营订单总价
必需
paymentMethod
string 
支付方式
必需
示例
{
    "authentication": {
        "sign": "{{sign}}",
        "timestamp": "{{timestamp}}"
    },
    "auxOrderNo": "18599058925555712",
    "orderNo": "18599020016177152",
    "partnerAuxOrderNo": "",
    "currency": "CNY",
    "totalPrice": 7757,
    "paymentMethod": "0"
}

示例代码

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/ancillaryPurchase.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
    "authentication": {
        "sign": "",
        "timestamp": ""
    },
    "auxOrderNo": "18599058925555712",
    "orderNo": "18599020016177152",
    "partnerAuxOrderNo": "",
    "currency": "CNY",
    "totalPrice": 7757,
    "paymentMethod": "0"
}'

返回响应

🟢200OK
application/json
Body
traceId
string 
追溯码
必需
code
string 
状态码
必需
000000 代表成功,其他代表失败
message
string 
状态说明
必需
processingTime
number 
处理时长
必需
单位:ms
>= 0
data
object 
返回的所有数据
可选
当status为(失败)时,内容为空
auxOrderNo
string 
FR24辅营订单号
必需
partnerOrderNo
string 
合作方辅营订单号
可选
orderNo
string 
FR24机票订单号
必需
currency
string 
订单币种
必需
totalPrice
string 
订单总价
必需
示例
{
    "traceId": "auxPay_NEWAPI2501171151003020813",
    "code": "000000",
    "message": "成功",
    "processingTime": 1057,
    "data": {
        "auxOrderNo": "18599058925555712",
        "orderNo": "18599020016177152",
        "currency": "CNY",
        "totalPrice": 7757
    }
}
修改于 2025-06-12 09:37:26
上一页
ancillaryBooking 辅营生单接口
下一页
ancillaryOrderDetail 辅营订单详情
Built with