Exchange Eligibility API Reference
Get |
eligibility/ticketchangeeligibilities Base path: Note the following base path varies from that used for other JSON APIs.
Pre-production https://api.pp.travelport.com/11/ Production https://api.travelport.com/11/ |
Related Content:GDS Exchanges Guide, Ticketing Exchange Guide / API Reference
The Eligibility API is the first step in the GDS exchange workflow. It is an optional step. Eligibility returns information about whether a ticket may have value in an exchange or refund scenario, and the range of potential exchange and refund fees. This information relates only to fees and not any fare or tax difference for the itinerary.
After the Eligibility request, create a post-commit workbench and send an Exchange Search request.
Request
Also see Authorization and Common Headers.
Query Parameters
Send either the Ticket or Locator parameter per below. Ticket returns eligibility details for only the one traveler on the ticket, while Locator returns details for all travelers on that reservation.
Parameter | Description | Required/Optional |
---|---|---|
Ticket |
The ticket number of the ticketed itinerary to request eligibility information for. Append ?Ticket and the ticket number to the GET request. |
Either ticket number or locator is required. |
Locator |
The reservation locator of the itinerary to request eligibility information for. Append ?Locator and the reservation locator to the GET request. |
Either ticket number or locator is required. |
Request Body
There is no message payload.
Response
The Eligibility response returns details on whether the ticket can be exchanged or refunded, and the range of possible change fees.
Object |
Description |
---|---|
TicketChangeEligibilityListResponse |
Top level object for response. Key value pairs:
|
TicketChangeEligibility |
Details about whether the ticket can be exchanged or refunded. Key value pairs:
|
Identifier |
Transaction identifier information. Key value pairs:
|
Penalties
|
Top level object for penalty fees charged for changes to this itinerary. Includes the Change object. |
Change |
Details about maximum or minimum change fees charged for changes to this itinerary. Includes the Penalty object and the following key value pair:
|
Cancel |
Details about cancellation fees. Includes the Penalty object and the following key value pair:
|
Penalty |
Top level object for Amount object. |
Penalty/Amount |
Both Penalties/Change and Cancel include the Penalty/Amount object. In both objects Amount details any change fee or the cancel penalty. Key value pairs:
|
Example Request
Ticket number example
https://api.pp.travelport.com/11/eligibility/ticketchangeeligibilities/?Ticket=0833468996794
reservation locator example
https://api.pp.travelport.com/11/eligibility/ticketchangeeligibilities/?Locator=NNGW42
Example Response
Note the response returns eligibility at the passenger level, not the PTC level.
The response below returns details for each passenger on a reservation with three ADT travelers. Details for each traveler are returned in a separate instance of TicketChangeEligibility with type TicketChangeEligibility.
{
"TicketChangeEligibilityListResponse": {
"traceId": "Test_TripChange_Eligibility_1417",
"TicketChangeEligibility": [
{
"@type": "TicketChangeEligibility",
"exchangeable": "All",
"refundable": "None",
"objID": "ticketChangeEligibility_1",
"Identifier": {
"authority": "Travelport",
"value": "2203768448152"
},
"Penalties": {
"Change": [
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Maximum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
},
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Minimum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
}
]
},
"PassengerTypeCode": "ADT"
},
{
"@type": "TicketChangeEligibility",
"exchangeable": "All",
"refundable": "None",
"objID": "ticketChangeEligibility_2",
"Identifier": {
"authority": "Travelport",
"value": "2203768448150"
},
"Penalties": {
"Change": [
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Maximum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
},
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Minimum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
}
]
},
"PassengerTypeCode": "ADT"
},
{
"@type": "TicketChangeEligibility",
"exchangeable": "All",
"refundable": "None",
"objID": "ticketChangeEligibility_3",
"Identifier": {
"authority": "Travelport",
"value": "2203768448151"
},
"Penalties": {
"Change": [
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Maximum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
},
{
"@type": "ChangePermitted",
"penaltyTypes": [
"Minimum"
],
"Penalty": [
{
"@type": "PenaltyAmount",
"Amount": {
"code": "AUD",
"minorUnit": 2,
"value": 0
}
}
]
}
]
},
"PassengerTypeCode": "ADT"
}
]
}
}