Implementation Notes
This is a lookup method that gives fare family list to be used for getAvailability request. The output changes depending on ports location (domestic or international) and ticket type (award ticket or not).
Name | Description | Type | Required |
portList |
Array of 3 Letter IATA Port code. | String (IST) | Yes |
isMilesRequest |
If availability req is for award ticket, this parameter should be set as ‘true’.. | String (T,F) | No |
Name | Description | Type |
isDomestic |
It shows if ports in the request are domestic or not. | String (T,F) |
Name | Description | Type |
fareFamilyDescription |
It describes the name of fare family. | String |
fareFamilyGroup |
It shows fare family group (cabin). | String |
fareFamilyKey |
It shows DFS key or miles key of fare families in Troya. | String |
{
"portList":[
"IST",
"JFK"
],
"isMilesRequest" : "F"
}
{
"status": "SUCCESS",
"message": {
"code": "TK-0000",
"description": "Request Processed Successfully."
},
"data": {
"fareFamilyOTAResponse": {
"fareFamilyList": {
"fareFamilyInfo": [
{
"fareFamilyDescription": "Economy Guarantee",
"fareFamilyGroup": "ECONOMY",
"fareFamilyKey": "FREEECONOMYG"
},
{
"fareFamilyDescription": "Comfort Guarantee",
"fareFamilyGroup": "COMFORT",
"fareFamilyKey": "FREEECOPREG"
},
{
"fareFamilyDescription": "Comfort Non-Guarantee",
"fareFamilyGroup": "COMFORT",
"fareFamilyKey": "FREEECOPRENG"
},
{
"fareFamilyDescription": "Business Guarantee",
"fareFamilyGroup": "BUSINESS",
"fareFamilyKey": "FREEBUSINESSG"
},
{
"fareFamilyDescription": "Business Non-Guarantee",
"fareFamilyGroup": "BUSINESS",
"fareFamilyKey": "FREEBUSINESSNG"
},
{
"fareFamilyDescription": "Economy Non-Guarantee",
"fareFamilyGroup": "ECONOMY",
"fareFamilyKey": "FREEECONOMYNG"
}
]
},
"isDomestic": "T"
}
}
}
You can find how to test an API in documentation page.
API URL : https://api.turkishairlines.com