- FR24_API_V1.1.0
- API Work Flow
- Introduction
- Appendix
- 错误码
- Error Code
- ShoppingPOST
- PricingPOST
- PresaleAncillaryShoppingPOST
- BookingPOST
- TicketingPOST
- OrderDetailPOST
- PostsaleAncillaryShoppingPOST
- AncillaryBookingPOST
- AncillaryPurchasePOST
- AncillaryOrderDetailPOST
- ChangeReshopPOST
- ReissueRequestPOST
- RefundRequestPOST
- RefundConfirmingPOST
- VoidRequestPOST
ChangeReshop
POST
/api/new/changeReshop.do
Note: Rerouting enables customers to make changes to the same origin and destination airports.
Request
Header Params
Accept-Encoding
string
required
Default:
gzip, deflate, br
content-Type
string
required
Default:
application/json
appKey
string
required
Default:
{{appKey}}
Body Params application/json
authentication
object
User authentication
sign
string
Signature
timestamp
string
Unix timestamp
orderNo
string
FR24 ticketing order number
Match pattern:
^\d*$
originalSegments
array[object (Original flight segment information) {3}]
Original flight segment information
carrier
string
Airline IATA code
flightNo
string
Flight number
depTime
string <date-time>
Departure time
newLegs
array[object (Searching for segment information) {5}]
New rescheduled flight segment information
origin
string
Departure city
>= 3 characters<= 3 characters
typeO
enum<string>
The origin type restrictions
Allowed values:
airportcodeairportgroup
destination
string
Arrival city
>= 3 characters<= 3 characters
typeD
enum<string>
The destination type restrictions
Allowed values:
airportcodeairportgroup
depDate
string <date>
Departure date
>= 10 characters<= 10 characters
Match pattern:
^\d{4}-\d{2}-\d{2}$
adultNum
integer
Number of adult passengers
childNum
integer
Number of child passengers
infantNum
integer
Number of infant passengers
preferences
object
Preferences
cabin
enum<string>
Cabin class preference
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
code
string
Status code
message
string
Error code message
processingTime
number
Processing time
data
object
All the data returned according to the Request
offers
array [object {4}]
Quotation information
segments
array [object {16}]
Segment information
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