FlightRoutes24 API(Purchaser)
  1. FR24_API_V1.1.0
FlightRoutes24 API(Purchaser)
  • FR24_API_V1.1.0
    • API Work Flow
    • Introduction
    • Appendix
    • 错误码
    • Error Code
    • Shopping
      POST
    • Pricing
      POST
    • PresaleAncillaryShopping
      POST
    • Booking
      POST
    • Ticketing
      POST
    • OrderDetail
      POST
    • PostsaleAncillaryShopping
      POST
    • AncillaryBooking
      POST
    • AncillaryPurchase
      POST
    • AncillaryOrderDetail
      POST
    • ChangeReshop
      POST
    • ReissueRequest
      POST
    • RefundRequest
      POST
    • RefundConfirming
      POST
    • VoidRequest
      POST
  1. FR24_API_V1.1.0

PresaleAncillaryShopping

POST
/api/new/presaleAncillaryShopping.do
Calling PresaleAncillaryShopping API to search for available pre-sales ancillary information.
Presale definition: Before order being created.

Request

Header Params
Accept-Encoding
string 
required
Use gzip compression format
Default:
gzip, deflate, br
content-Type
string 
required
Response format
Default:
application/json
appKey
string 
required
User account
Default:
{{appKey}}
Body Params application/json
authentication
object 
User authentication
required
sign
string 
Signature
required
The encrypted string of appkey, appSecret and timestamp.Refer to Appendix I
timestamp
string 
Unix timestamp
required
measuring in Second
offerId
string 
Ticket offer Id
required
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
required
traceId can help locate problems when problems occur between partners and FR24.
code
string 
Status code
required
000000 means success, others mean failure.
message
string 
Error code message
required
processingTime
number 
Processing time
required
measuring in ms
data
object (Response data) 
All the data returned according to the Request
required
If code returns failure, data would be empty.
currency
string 
Currency
required
auxes
array[object (Ancillary can be added to segments) {9}] 
Ancillary can be added to segments
required
segments
array [object {16}] 
Segment information
required
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
Previous
Pricing
Next
Booking
Built with