Skip to main content

Create an Airport

This hold the Airport details your Flight will use

Danny Allen avatar
Written by Danny Allen
Updated over 2 weeks ago

The Airport record contains the Airport Codes, City and Airport name, Country and Timezone.


Terminology

Airport record

A data structure containing information about an airport, including its codes, city and airport name, country, and timezone.

Payload

The data sent to an API endpoint. In this case, it's a JSON object with information to create an airport record.

IATA Airport Code

A three-letter code used to identify an airport (e.g., BKK for Suvarnabhumi Airport).

ICAO Airport Code

A four-letter code used to identify an airport (e.g., VTBS for Suvarnabhumi Airport).

Pass Type ID

A certificate ID that must be added to the payload when editing.

Postman Collection

A tool used to find and interact with the Create Airport endpoint.

Create Airport endpoint

The specific API endpoint used to create a new airport record.


Creating the Airport

Example Payload

{
"iataAirportCode": "BKK",
"icaoAirportCode": "VTBS",
"cityName": "Bangkok",
"airportName": "Suvarnabhumi Airport",
"countryCode": "TH",
"timezone": "Asia/Bangkok"
}

Edit the Payload

Edit the payload with the relevant information for your Airport. And add your certificate Pass Type ID.


Using the Postman Collection

You can find the Create Airport endpoint with an example in the Postman Collection.

PassKit v4 SDK/Flights/Create Airport

Edit the payload as explained above, and click Invoke to run the request.

Did this answer your question?