FR24 OpenAPI
  1. API Reference
FR24 OpenAPI
  • FR24_API_V2.0
    • Guides
      • API Work Flow
      • Introduction
      • Appendix
      • Error Code
    • API Reference
      • 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
    • About us
      • API capability
      • Business Cooperation
      • Portal
  1. API Reference

PostsaleAncillaryShopping

POST
/api/new/postsaleAncillaryShopping.do
Calling PostsaleAncillary API to search for available post-sales ancillary information.
Postsale definition: After the 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
orderNo
string 
Ticket Order Number
optional
Example
{
  "authentication": {
    "sign": "",
    "timestamp": ""
  },
  "orderNo": ""
}

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/postsaleAncillaryShopping.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
    "authentication" : {
        "sign" : "",
        "timestamp" : ""
    },
    "orderNo" : ""
}'

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
>= 0
data
object 
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) {10}] 
Ancillary can be added to segments
required
segments
array [object {16}] 
Segment information
required
Examples
{
  "traceId": "",
  "code": "",
  "message": "",
  "processingTime": 123421,
  "data": {
    "currency": "",
    "auxes": [
      {
        "segmentIds": [
          ""
        ],
        "auxId": "",
        "baseFare": 150,
        "serviceFee": 10,
        "size": "",
        "piece": 1,
        "weight": 10,
        "limitPerPax": 5,
        "availability": 99
      }
    ],
    "segment": [
      {
        "segmentId": "",
        "duration": "",
        "carrier": "",
        "flightNo": "",
        "aircraftCode": "",
        "depAirport": "",
        "depTerminal": "",
        "depTime": "",
        "arrAirport": "",
        "arrTerminal": "",
        "arrTime": "",
        "stopAirport": null,
        "stopDuration": null
      }
    ]
  }
}
Modified at 2024-11-27 10:48:41
Previous
PresaleAncillaryShopping
Next
seatMap
Built with