Get Port List

Lists all ports in details.

 

Input

requestHeader

Name Description Type Required

clientUsername

Client Username String Yes

channel

Channel info (WEB/MOBIL) Yes

clientTransactionId

A unique id to identify transaction String Yes

clientCode

Client Code String No

airlineCode

Airline info String (TK,AJ) Yes

languageCode

Language Code String (TR,EN) No

agencyOfficeCode

Agency Office Code String (ITT) No

extraParameters

The model object which contains key, value Model[] No

requestHeader.extraParameters

Name Description Type Required

key

Key of the extra parameter String Yes

value

Value of the extra parameter String Yes
Name Description Type Required

airlineCode

Get ports for only this airline. String (TK,AJ) Yes

languageCode

Get ports in particular language. String (TR,EN,DE) No

Output

Port

Name Description Type

Code

3 Letter IATA airport code. String (IST,AYT)

validForAwardTicket

Determines whether port valid for award ticket. Boolean(true,false)

HasComfort

Determines whether port has comfort. Boolean(true,false)

IsSPA

Determines whether port is a TK port. Boolean(true,false)

IsDomestic

Determines whether port is domestic. Boolean(true,false)

Port.LanguageInfo.Language

Name Description Type

Code

2 Letter ISO 639-1 language code. String (EN,TR)

Name

Port Name in particular language. String

Port.PortTage.PortTagLanguage

Name Description Type

Code

2 Letter ISO 639-1 language code. String (EN,TR)

Name

Tag value. String

Port.Coordinate

Name Description Type

latitude

Latitude value of port coordinate. Double (60.949272)

longitude

Longitude value of port coordinate. Double (76.483617)

Port.Country

Name Description Type

Code

2 Letter ISO country code. String (EN,TR)

Port.Country.LanguageInfo.Language

Name Description Type

Code

2 Letter ISO 639-1 language code. String (EN,TR)

Name

Name of country in particular language. String

Port.Region.LanguageInfo.Language

Name Description Type

Code

2 Letter ISO 639-1 language code. String (EN,TR)

Name

Name of region in particular language. String

Port.Region.LanguageInfo.Language

Name Description Type

Code

2 Letter ISO 639-1 language code. String (EN,TR)

Name

Name of city in particular language. String

Request

			
{
	"requestHeader": {
		"clientUsername": "OPENAPI",
		"clientTransactionId": "CLIENT_TEST_1",
		"channel": "WEB",
		"languageCode":"TR",
		"airlineCode":"TK"
	}
}
			
        

Response

			
{
	  "status": "SUCCESS",
	  "message": {
		"code": "TK-0000",
		"description": "Request Processed Successfully."
	  },
	  "data": {
		"Port": [
			  {
				"IsDomestic": true,
				"IsSPA": false,
				"LanguageInfo": {"Language": [
					{
						"Code": "TR",
						"Name": "ATATÜRK "
					},
					{
						"Code": "EN",
						"Name": "ATATURK "
					},
					{
						"Code": "DE",
						"Name": "ATATÜRK "
					},
					{
						"Code": "TR",
						"Name": "ATATÜRK "
					}
				]},
				"PortTag": {"PortTagLanguage": [
					{
						"Code": "TR",
						"Name": null
					},
					{
						"Code": "EN",
						"Name": "ESTAMBUL"
					},
					{
						"Code": "EN",
						"Name": "STENBOL"
					},
					{
						"Code": "EN",
						"Name": "STAMBULAS"
					},
					{
						"Code": "DE",
						"Name": "ESTAMBUL"
					},
					{
						"Code": "DE",
						"Name": "STENBOL"
					},
					{
						"Code": "DE",
						"Name": "STAMBULAS"
					}
				]},
				"validForAwardTicket": true,
				"Coordinate": {
					"latitude": "40.976944",
					"longitude": "28.821111"
				},
				"Country": {
					"LanguageInfo": {"Language": [
						{
							"Code": "EN",
							"Name": "TURKEY"
						},
						{
							"Code": "DE",
							"Name": "TURKEI"
						},
						{
							"Code": "TR",
							"Name": "TÜRKİYE"
						}
					]},
					"Code": "TR"
				},
				"Region": {
					"LanguageInfo": {"Language": [
						{
							"Code": "TR",
							"Name": "AVRUPA"
						},
						{
							"Code": "EN",
							"Name": "EUROPE"
						},
						{
							"Code": "DE",
							"Name": "EUROPE"
						}
					]},
					"code": "EU"
				},
				"HasComfort": false,
				"City": {
					"LanguageInfo": {"Language": [
						{
							"Code": "TR",
							"Name": "İSTANBUL"
						},
						{
							"Code": "DE",
							"Name": "İSTANBUL"
						},
						{
							"Code": "TR",
							"Name": "İSTANBUL"
						},
						{
							"Code": "EN",
							"Name": "ISTANBUL"
						},
						{
							"Code": "DE",
							"Name": "İSTANBUL"
						},
						{
							"Code": "EN",
							"Name": "ISTANBUL"
						}
					]},
					"PortsInCity": {"Port": [
						{"Code": "IST"},
						{"Code": "SAW"}
					]},
					"Code": "IST"
				},
				"Code": "IST"
			}
		]
	  }
	}
			
		

You can find how to test an API in documentation page.