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

Ticketing

POST
/api/new/ticketing.do
This API is used for order payment & ticket issue.
Make payments and request ticketing by calling the Ticketing API. Partner calls this API to inform FR24 to deduct balance for the order requested. If the API call successfully, the payment completed successfully. The ticket number will be obtained via OrderChangeInforming API, or via the OrderDetail API.
After the order is created, the order has to be paid within payment deadline, otherwise the order will be canceled.
Note: Requesting the API of Ticketing successfully only means FR24 has received the ticketing application, and it will be pending rather than being instantly confirmed and issued. FR24 will notify the order status change via orderChangeInforming API if the booking is confirmed and the ticket can be issued.

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 
FR24 order number or reissue order number.
required
or reissue order number.
Match pattern:
^\d*$
partnerOrderNo
string 
Partner’s order number
optional
currency
string 
Currency
required
totalPrice
number 
Total price
required
paymentMethod
string 
Payment method
required
0 - Pay by balance in B2B wallet (for users who use either balance or credit for payments)
Match pattern:
^\d*$
Example
{
  "authentication": {
    "sign": "{{sign}}",
    "timestamp": "{{timestamp}}"
  },
  "orderNo": "17981635587543040",
  "partnerOrderNo": "",
  "totalPrice": 355.22,
  "currency": "USD",
  "paymentMethod": "0"
}

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/ticketing.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
    "authentication": {
        "sign": "",
        "timestamp": ""
    },
    "orderNo": "17981635587543040",
    "partnerOrderNo": "",
    "totalPrice": 355.22,
    "currency": "USD",
    "paymentMethod": "0"
}'

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 (Ticket response) 
All the data returned according to the Request
optional
If code returns failure, it would be empty.
orderNo
string 
FR24 order number
required
orderStatus
string 
Order status
required
partnerOrderNo
string 
Partner’s order number
optional
totalPrice
number 
Total price of the order
required
currency
string 
Currency
required
Example
{
  "traceId": "applyticket_NEWAPI24093010521029707707",
  "code": "000000",
  "message": "ok",
  "processingTime": 2418,
  "data": {
    "orderNo": "17981635587543040",
    "orderStatus": null,
    "partnerOrderNo": "",
    "instantTicketing": [
      {
        "airlinePnr": "WLWBUN,WLWBUN",
        "gdsPnr": "IVUAKU",
        "paxId": "1",
        "paxName": "YGVU/ZTMII",
        "ticketNo": ""
      }
    ],
    "totalPrice": 355.22,
    "currency": "USD"
  }
}
Previous
Booking
Next
OrderDetail
Built with