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

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
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 ticketing order number
required
FR24 ticketing order number
Match pattern:
^\d*$
originalSegments
array[object (Original flight segment information) {3}] 
Original flight segment information
required
Original flight segment information
carrier
string 
Airline IATA code
required
flightNo
string 
Flight number
required
depTime
string <date-time>
Departure time
required
YYYY-MM-DDTHH:mm
newLegs
array[object (Searching for segment information) {5}] 
New rescheduled flight segment information
required
New rescheduled flight segment information
origin
string 
Departure city
required
code by IATA
>= 3 characters<= 3 characters
typeO
enum<string> 
The origin type restrictions
optional
airportcode: The type of origin is an airportcode airportgroup: The origin type is a city code
Allowed values:
airportcodeairportgroup
destination
string 
Arrival city
required
code by IATA
>= 3 characters<= 3 characters
typeD
enum<string> 
The destination type restrictions
optional
airportcode: The type of origin is an airportcode airportgroup: The origin type is a city code
Allowed values:
airportcodeairportgroup
depDate
string <date>
Departure date
required
YYYY-MM-DD
>= 10 characters<= 10 characters
Match pattern:
^\d{4}-\d{2}-\d{2}$
adultNum
integer 
Number of adult passengers
required
childNum
integer 
Number of child passengers
optional
infantNum
integer 
Number of infant passengers
optional
preferences
object 
Preferences
optional
Cabin class provided only
cabin
enum<string> 
Cabin class preference
optional
If not specified, it will default to the cabin class of the original booking.
Allowed values:
FCPY
Example
{
  "authentication": {
    "sign": "{{sign}}",
    "timestamp": "{{timestamp}}"
  },
  "orderNo": "17982000496513024",
  "originalSegments": [
    {
      "carrier": "FD",
      "flightNo": "2271",
      "depTime": "2024-11-17T03:18"
    }
  ],
  "newLegs": [
    {
      "origin": "SIN",
      "destination": "BKK",
      "depDate": "2024-10-28"
    }
  ],
  "adultNum": 1,
  "childNum": 0,
  "infantNum": 0,
  "preferences": {
    "cabin": ""
  }
}

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/changeReshop.do' \
--header 'Accept-Encoding;' \
--header 'appKey;' \
--header 'content-Type: application/json' \
--data-raw '{
    "authentication": {
        "sign": "",
        "timestamp": ""
    },
    "orderNo": "17982000496513024",
    "originalSegments": [
        {
            "carrier": "FD",
            "flightNo": "2271",
            "depTime": "2024-11-17T03:18"
        }
    ],
    "newLegs": [
        {
            "origin": "SIN",
            "destination": "BKK",
            "depDate": "2024-10-28"
        }
    ],
    "adultNum": 1,
    "childNum": 0,
    "infantNum": 0,
    "preferences": {
        "cabin": ""
    }
}'

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 
All the data returned according to the Request
required
If code returns failure, the field would be empty.
offers
array [object {4}] 
Quotation information
required
Each itinerary has the option to change flight combinations.
segments
array [object {16}] 
Segment information
required
including all unique flight details.
Example
{
  "traceId": "NEWAPI24093012243037607740",
  "code": "000000",
  "message": "ok",
  "processingTime": 744,
  "data": {
    "segments": [
      {
        "segmentId": "843890b227ac8f520f821e62e91111e2",
        "duration": 1164,
        "carrier": "TR",
        "flightNo": "2846",
        "codeShare": false,
        "operatingCarrier": "TR",
        "operatingFlightNo": "TR2846",
        "aircraftCode": "波音747",
        "depAirport": "XSP",
        "depTerminal": "T1",
        "depTime": "2024-10-28T05:56",
        "arrAirport": "BKK",
        "arrTerminal": "T2",
        "arrTime": "2024-10-29T01:20",
        "stopAirport": null,
        "stopDuration": null
      },
      {
        "segmentId": "a2601539d6d3264458d78a2600590565",
        "duration": 1536,
        "carrier": "SQ",
        "flightNo": "6518",
        "codeShare": false,
        "operatingCarrier": "SQ",
        "operatingFlightNo": "SQ6518",
        "aircraftCode": "空客A300",
        "depAirport": "SIN",
        "depTerminal": "T1",
        "depTime": "2024-10-28T14:47",
        "arrAirport": "BKK",
        "arrTerminal": "T2",
        "arrTime": "2024-10-29T16:23",
        "stopAirport": null,
        "stopDuration": null
      },
      {
        "segmentId": "211faef632a6906f22448e3518fc3709",
        "duration": 1356,
        "carrier": "MI",
        "flightNo": "6303",
        "codeShare": false,
        "operatingCarrier": "MI",
        "operatingFlightNo": "MI6303",
        "aircraftCode": "空客A300",
        "depAirport": "XSP",
        "depTerminal": "T1",
        "depTime": "2024-10-28T10:43",
        "arrAirport": "BKK",
        "arrTerminal": "T2",
        "arrTime": "2024-10-29T09:19",
        "stopAirport": null,
        "stopDuration": null
      }
    ],
    "offers": [
      {
        "offerId": null,
        "currency": null,
        "legs": [
          {
            "legId": null,
            "segmentIds": [
              "843890b227ac8f520f821e62e91111e2"
            ]
          },
          {
            "legId": null,
            "segmentIds": [
              "a2601539d6d3264458d78a2600590565"
            ]
          },
          {
            "legId": null,
            "segmentIds": [
              "211faef632a6906f22448e3518fc3709"
            ]
          }
        ],
        "changeFee": null,
        "cabin": null,
        "rbd": null
      }
    ]
  }
}
Modified at 2025-04-17 06:24:00
Previous
AncillaryOrderDetail
Next
ReissueRequest
Built with