FR24 OpenAPI
  1. API Reference
FR24 OpenAPI
  • FR24_API_V2.0
    • Guides
      • API Work Flow
      • Introduction
      • Appendix
      • Version History
      • Error Code
    • API Reference
      • shopping
        POST
      • pricing
        POST
      • presaleAncillaryShopping
        POST
      • seatMap
        POST
      • booking
        POST
      • ticketing
        POST
      • orderChangeInforming
        POST
      • orderDetail
        POST
      • postsaleAncillaryShopping
        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

changeReshop

POST
/api/new/changeReshop.do
Calling changeReshop to get offers in case the client wants to change date/time, change route or cabin of a confirmed booking. Client will get offers in the response of changeReshop.
Note: Rerouting enables customers to make changes to the same origin and destination airports.

Request

Header Params

Body Params application/json

Example
{
    "authentication": {
        "sign": "{{sign}}",
        "timestamp": "{{time}}"
    },
    "orderNo": "{{orderNo_detail}}",
    "originalSegments": [
        {
            "carrier": "{{carrier_detail}}",
            "flightNo": "{{flightNo_detail}}",
            "depTime": "{{depTime_detail}}"
        }
    ],
    "newLegs": [
        {
            "origin": "SIN",
            "destination": "HKG",
            "depDate": "2024-04-16"
        },
        {
            "origin": "HKG",
            "destination": "SIN",
            "depDate": "2024-04-22"
        }
    ],
    "adultNum": 1,
    "childNum": 0,
    "infantNum": 0,
    "preferences": {
        "cabin": ""
    }
}

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/changeReshop.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
    "authentication": {
        "sign": "",
        "timestamp": "{{time}}"
    },
    "orderNo": "{{orderNo_detail}}",
    "originalSegments": [
        {
            "carrier": "{{carrier_detail}}",
            "flightNo": "{{flightNo_detail}}",
            "depTime": "{{depTime_detail}}"
        }
    ],
    "newLegs": [
        {
            "origin": "SIN",
            "destination": "HKG",
            "depDate": "2024-04-16"
        },
        {
            "origin": "HKG",
            "destination": "SIN",
            "depDate": "2024-04-22"
        }
    ],
    "adultNum": 1,
    "childNum": 0,
    "infantNum": 0,
    "preferences": {
        "cabin": ""
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "traceId": "",
    "code": "000000",
    "message": "success",
    "processingTime": "",
    "data": {
        "offers": [
            {
                "offerId": "16714275498827776",
                "currency": "CNY",
                "legs": [
                    {
                        "legId": "6569cc7f11c26f09901f5af0063aff8c",
                        "segmentIds": [
                            "cc3e76f1df8f841e7592e9a295c503b0",
                            "2895534648b7bca1b1f9acfeadf89271"
                        ]
                    }
                ],
                "changeFee": [
                    {
                        "legId": "6569cc7f11c26f09901f5af0063aff8c",
                        "paxType": "ADT",
                        "baseFare": "2000.00",
                        "totalTax": "12.00",
                        "taxBreakdown": [
                            {
                                "taxType": "",
                                "taxAmount": 12
                            }
                        ],
                        "baseFareDiff": "200.00",
                        "totalTaxDiff": "2.00",
                        "changeFee": "50.00",
                        "noshow": "0.00",
                        "serviceFee": null,
                        "totalFare": "252.00"
                    }
                ],
                "cabin": "Y",
                "RBD": "Q"
            },
            {
                "offerId": "15803089789194240",
                "currency": "CNY",
                "legs": [
                    {
                        "legId": "e3504f0918ff9594ec8537663b02f925",
                        "segmentIds": [
                            "2895534648b7bca1b1f9acfeadf89272",
                            "cc3e76f1df8f841e7592e9a295c503b1"
                        ]
                    }
                ],
                "changeFee": [
                    {
                        "legId": "e3504f0918ff9594ec8537663b02f925",
                        "paxType": "ADT",
                        "baseFare": "2017.30",
                        "totalTax": "4.00",
                        "taxBreakdown": [
                            {
                                "taxType": "",
                                "taxAmount": 4
                            }
                        ],
                        "baseFareDiff": "217.30",
                        "totalTaxDiff": "0.00",
                        "changeFee": "40.00",
                        "noshow": "0.00",
                        "serviceFee": null,
                        "totalFare": "257.30"
                    }
                ],
                "cabin": "Y",
                "RBD": "Q"
            }
        ],
        "segments": [
            {
                "segmentId": "cc3e76f1df8f841e7592e9a295c503b0",
                "duration": 93,
                "carrier": "FR",
                "flightNo": "953",
                "aircraftCode": "Boeing 777",
                "depAirport": "SIN",
                "depTerminal": null,
                "depTime": "2024-04-16T08:33",
                "arrAirport": "HKG",
                "arrTerminal": null,
                "arrTime": "2024-04-16T11:30",
                "stopAirport": [],
                "stopDuration": []
            },
            {
                "segmentId": "2895534648b7bca1b1f9acfeadf89271",
                "duration": 213,
                "carrier": "PG",
                "flightNo": "688",
                "aircraftCode": "Boeing 777",
                "depAirport": "HKG",
                "depTerminal": null,
                "depTime": "2024-04-22T05:06",
                "arrAirport": "SIN",
                "arrTerminal": null,
                "arrTime": "2024-04-22T08:00",
                "stopAirport": [],
                "stopDuration": []
            },
            {
                "segmentId": "2895534648b7bca1b1f9acfeadf89272",
                "duration": "93",
                "carrier": "FR",
                "flightNo": "953",
                "aircraftCode": "Boeing 777",
                "depAirport": "SIN",
                "depTerminal": null,
                "depTime": "2024-04-16T14:20",
                "arrAirport": "HKG",
                "arrTerminal": null,
                "arrTime": "2024-04-16T16:50",
                "stopAirport": [],
                "stopDuration": []
            },
            {
                "segmentId": "cc3e76f1df8f841e7592e9a295c503b1",
                "duration": 213,
                "carrier": "PG",
                "flightNo": "688",
                "aircraftCode": "Boeing 777",
                "depAirport": "HKG",
                "depTerminal": null,
                "depTime": "2024-04-22T10:06",
                "arrAirport": "SIN",
                "arrTerminal": null,
                "arrTime": "2024-04-22T13:05",
                "stopAirport": [],
                "stopDuration": []
            }
        ]
    }
}
Modified at 2025-06-12 09:40:23
Previous
ancillaryOrderDetail
Next
reissueRequest
Built with