Skip to main content

Reshop order

POST /json/{version}/orders/{orderId}/reshop shops replacement flights or quotes the impact of cancelling or changing a booking. It is the JSON counterpart of the NDC IATA_OrderReshopRQ.

For itinerary changes, reshop is the first step of the change flow: reshop → quote orderchange order with AcceptReshopOffer. Offers returned here must be priced with quote order, not price offer.

Authorization

Reshop requires full transaction (book) permissions on the API key.

Request

FieldDescription
instructionOne instruction object — see below.
passengersPassengers in scope: paxId (required, from the retrieved order) and type.
Instruction typeDescription
ReshopItineraryShops replacement flights for new originDestinations; optional deleteOrderItemRefIds and cabinTypeCode.
CancelOrderQuotes the penalty and refund for cancelling the whole order.
DeleteOrderItemsQuotes removal of specific order items by orderItemRefIds.
NameChangeQuotes a passenger name change (paxRefId, surname, optional givenName).
POST /json/v0/orders/ABC123/reshop
Authorization: <bearer token from /auth/token>
Content-Type: application/json

{
"instruction": {
"type": "CancelOrder"
},
"passengers": [
{
"paxId": "PAX-eyJ2IjoxfQ",
"type": "ADT"
}
]
}

Response

data.offers lists replacement offers (empty for pure cancellation quotes). A CancelOrder instruction returns cancellation with penaltyAmount, refundAmount, and isRefundable; commit cancellation through change order. A NameChange instruction returns nameChange.fee.

{
"data": {
"orderId": "ABC123",
"recordLocator": "ABC123",
"pax": [
{
"paxId": "PAX-eyJ2IjoxfQ",
"ptc": "ADT"
}
],
"offers": [],
"cancellation": {
"penaltyAmount": {
"amount": 50,
"currency": "USD"
},
"refundAmount": {
"amount": 150,
"currency": "USD"
},
"isRefundable": true
}
},
"error": null
}

Reshop order errors

CodeHTTP statusCause
ERR-1002404Unsupported version segment in the path.
ERR-1005422Request validation failed.
ERR-4000404Order not found.
ERR-4002400Requested change could not be quoted.
ERR-8000401Missing or invalid API key or bearer token.
ERR-8001403API key lacks full transaction permissions.
ERR-8002503Authentication store unavailable.
ERR-9003500Reshop failed upstream.