- FR24_API_V1.1.0
- API Work Flow
- Introduction
- Appendix
- 错误码
- Error Code
- ShoppingPOST
- PricingPOST
- PresaleAncillaryShoppingPOST
- BookingPOST
- TicketingPOST
- OrderDetailPOST
- PostsaleAncillaryShoppingPOST
- AncillaryBookingPOST
- AncillaryPurchasePOST
- AncillaryOrderDetailPOST
- ChangeReshopPOST
- ReissueRequestPOST
- RefundRequestPOST
- RefundConfirmingPOST
- VoidRequestPOST
AncillaryBooking
POST
/api/new/ancillaryBooking.do
By calling AncillaryBooking API, partner could add extra ancillary products to an exist order.
Request
Header Params
Accept-Encoding
string
required
Default:
gzip, deflate, br
content-Type
string
required
Default:
application/json
appKey
string
required
Default:
{{appKey}}
Body Params application/json
authentication
object
User authentication
sign
string
Signature
timestamp
string
Unix timestamp
orderNo
string
Order number that need to be added ancillary.
Match pattern:
^\d*$
partnerOrderNo
string
Partner’s Order number
ancillary
array[object (The content of ancillary pre-sales) {7}]
Ancillary booking details
paxId
string
Passenger ID
segmentIds
array[string]
Combination of segment IDs
auxId
string
Ancillary ID
quantity
number
purchased pieces
auxType
integer
required
baggage
array [object {4}]
Ancillary baggage information
seatInfos
array [object {6}]
Ancillary seat selection information
passengers
array [object {2}]
Passenger’s information
paxId
string
Passenger id
name
string
Passenger name
segments
array [object {16}]
Segment information
segmentId
string
Segment unique identifier
duration
integer
Total duration of the flight segment
carrier
string
Selling carrier
flightNo
string
Flight number
codeShare
boolean
Flight sharing identifier
false - non-code share
operatingCarrier
string
Operating carrier
operatingFlightNo
string
Operating flight number
aircraftCode
string
Aircraft
depAirport
string
Departure airport
depTerminal
string
Departure terminal
Example:
T1
depTime
string <date-time>
Departure time
arrAirport
string
Arrival airport
arrTerminal
string
Arrival terminal
Example:
T2
arrTime
string <date-time>
Arrival time
stopAirport
array[string]
Stop airport
stopDuration
array[integer]
Duration of stop
Example
{
"authentication": {
"sign": "{{sign}}",
"timestamp": "{{timestamp}}"
},
"orderNo": "17981635587543040",
"partnerOrderNo": "",
"ancillary": [
{
"paxId": 1,
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "ba956d7f02354134a442294275f232b0",
"quantity": 1
}
],
"passengers": [
{
"paxId": "1",
"name": "YGVU/ZTMII"
}
],
"segments": [
{
"segmentId": "cdabc75289fb9dcf917526324de0e878",
"duration": 1492,
"carrier": "FD",
"flightNo": "8750",
"codeShare": false,
"operatingCarrier": "FD",
"operatingFlightNo": "FD8750",
"aircraftCode": "空客A300",
"depAirport": "DMK",
"depTerminal": "T1",
"depTime": "2024-10-24T03:18",
"arrAirport": "SIN",
"arrTerminal": "T2",
"arrTime": "2024-10-25T05:10",
"stopAirport": null,
"stopDuration": null
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://flight-test.flightroutes24.com/api/new/ancillaryBooking.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
"authentication": {
"sign": "",
"timestamp": ""
},
"orderNo": "17981635587543040",
"partnerOrderNo": "",
"ancillary": [
{
"paxId": 1,
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "ba956d7f02354134a442294275f232b0",
"quantity": 1
}
],
"passengers": [
{
"paxId": "1",
"name": "YGVU/ZTMII"
}
],
"segments": [
{
"segmentId": "cdabc75289fb9dcf917526324de0e878",
"duration": 1492,
"carrier": "FD",
"flightNo": "8750",
"codeShare": false,
"operatingCarrier": "FD",
"operatingFlightNo": "FD8750",
"aircraftCode": "空客A300",
"depAirport": "DMK",
"depTerminal": "T1",
"depTime": "2024-10-24T03:18",
"arrAirport": "SIN",
"arrTerminal": "T2",
"arrTime": "2024-10-25T05:10",
"stopAirport": null,
"stopDuration": null
}
]
}'
Responses
🟢200OK
application/json
Body
traceId
string
Traceability code
code
string
Status code
message
string
Error code message
processingTime
number
Processing time
data
object (Ancillary booking response)
All the data returned according to the Request
If code returns failure, data would be empty.
auxOrderNo
string
Ancillary order number is independent of ticket order number
auxOrderStatus
string
Order status
partnerAuxOrderNo
string
Ancillary order id of partner
orderNo
string
Related ticket order number
createTime
string
Order creating time
currency
string
Currency
totalPrice
number
Total price of ancillary order
ancillary
object (Ancillary information)
Ancillary information
passengers
array [object {2}]
Passengers’ information
segments
array [object {16}]
Segments’ information
payDeadline
string
Payment deadline
Example
{
"traceId": "auxOrder_NEWAPI24093010540068707710",
"code": "000000",
"message": "ok",
"processingTime": 1031,
"data": {
"auxOrderNo": "17981648020443136",
"auxOrderStatus": "1",
"partnerAuxOrderNo": "",
"orderNo": "17981635587543040",
"createTime": null,
"currency": "USD",
"totalPrice": 45.64,
"ancillary": {
"baggage": [
{
"paxId": "1",
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "ba956d7f02354134a442294275f232b0",
"totalPrice": 45.64,
"baseFare": 45.64,
"serviceFee": 0,
"size": "e",
"piece": 1,
"weight": 25,
"quantity": 1
}
],
"seatInfos": null
},
"passengers": [
{
"paxId": "1",
"name": "YGVU/ZTMII"
}
],
"segments": [
{
"segmentId": "cdabc75289fb9dcf917526324de0e878",
"duration": 1492,
"carrier": "FD",
"flightNo": "8750",
"codeShare": false,
"operatingCarrier": "FD",
"operatingFlightNo": "FD8750",
"aircraftCode": "空客A300",
"depAirport": "DMK",
"depTerminal": "T1",
"depTime": "2024-10-24T03:18",
"arrAirport": "SIN",
"arrTerminal": "T2",
"arrTime": "2024-10-25T05:10",
"stopAirport": null,
"stopDuration": null
}
],
"payDeadline": null
}
}
Modified at 2025-04-17 06:24:00