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

AncillaryBooking

POST
/api/new/ancillaryBooking.do
The API is the Post-sales ancillary API. After the ticket booking, the API is called to book the ticket when need to add ancillary.
By calling AncillaryBooking API, partner could add extra ancillary products to an exist order.

Request

Header Params

Body Params application/json

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 Code 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

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
Previous
PostsaleAncillaryShopping
Next
AncillaryPurchase
Built with