- 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
PresaleAncillaryShopping
POST
/api/new/presaleAncillaryShopping.do
Presale definition: Before order being created.
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
offerId
string
Ticket offer Id
Example
{
"authentication": {
"sign": "{{sign}}",
"timestamp": "{{timestamp}}"
},
"offerId": "17981626452283392"
}
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/presaleAncillaryShopping.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
"authentication": {
"sign": "",
"timestamp": ""
},
"offerId": "17981626452283392"
}'
Responses
🟢200OK
application/json
Body
traceId
string
Traceability code
code
string
Status code
message
string
Error code message
processingTime
number
Processing time
data
object (Response data)
All the data returned according to the Request
currency
string
Currency
auxes
array[object (Ancillary can be added to segments) {9}]
Ancillary can be added to segments
segments
array [object {16}]
Segment information
Example
{
"traceId": "preAuxQuery_NEWAPI24093010490849907704",
"code": "000000",
"message": "ok",
"processingTime": 121,
"data": {
"currency": "USD",
"auxes": [
{
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "ba956d7f02354134a442294275f232b0",
"baseFare": 45.64,
"serviceFee": 0,
"size": "e",
"piece": 1,
"weight": 25,
"limitPerPax": null,
"availability": null
},
{
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "0d5c31898edd43239380b15419d4a107",
"baseFare": 36.65,
"serviceFee": 0,
"size": "e",
"piece": 1,
"weight": 20,
"limitPerPax": null,
"availability": null
},
{
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "514215b21de544329241a5fcb30a6164",
"baseFare": 66.84,
"serviceFee": 0,
"size": "e",
"piece": 1,
"weight": 30,
"limitPerPax": null,
"availability": null
},
{
"segmentIds": [
"cdabc75289fb9dcf917526324de0e878"
],
"auxId": "56f4fcf86a7f437fba60e6990014d576",
"baseFare": 104.6,
"serviceFee": 0,
"size": "e",
"piece": 1,
"weight": 40,
"limitPerPax": null,
"availability": null
}
],
"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
}
]
}
}
Modified at 2025-04-17 06:24:00