API Updates (July 2021)

API Updates (July 2021)

The following updates have been made to the Avianis API:

  • Added empty leg designation

  • Additional data points to call GET/connect/v2/Trip/{tripId}/itinerary

  • Added a V2 endpoint GET/connect/v2/Account/{accountid}/Aircraft

  • Added a V2 contact endpoint GET /connect/v2/Contact/{contactId}/FlightLegs


Added Empty Leg Designation

Updated the API to allow for an operation to set a leg as Empty in the flight leg table to true or false. If a Null value is passed in initially, the leg is set to False. For update methods, if set to Null or left off, no change occurs in the database. The following endpoints include the Empty Leg designation:

  • POST /connect/v2/Trip

  • POST /connect/v2/Trip/{tripId}/Itinerary

  • PUT /connect/v2/Trip/{tripId}/Itinerary/{id}

These values are also included in the flight leg model for the response data and updated in the following endpoints.

  • GET /connect/v2/Trip/{id}

  • GET /connect/v2/Trip/{tripId}/Itinerary

Additional Data Points for GET/connect/v2/Trip/{tripId}/itinerary are:

  • Flight Following Status - This is the name of the status that correlates with the FlightFollowingStatusID on the flight leg

  • TripNumber

  • TripGuid

  • FlightCoordinatorName

  • FlightCoordinatorGuid

  • SalesRepName

  • SalesRepGuid

  • LegNumber

  • DepartureAirportCity

  • DepartureAirportState

  • DepartureAirportCountry

  • ArrivalAirportCity

  • ArrivalAirportState

  • ArrivalAirportCountry

  • DepartureFBOAddress

  • DepartureFBOPhoneNumber

  • ArrivalFBOAddress

  • ArrivalFBOPhoneNumber

  • ScheduledDepartureDateUTC

  • ScheduledDepartureDateLocal

  • ActualDepartureDateUTC

  • ActualDepartureDateLocal

  • ScheduledArrivalDateUTC

  • ScheduledArrivalDateLocal

  • ActualArrivalDateUTC

  • ActualArrivalDateLocal

  • EstimatedFlightTime

  • ActualFlightTime

Added GET/connect/v2/Account/{accountid}/Aircraft

The parameter that can pass in in is the accountID (the GUID of an account in the system). It will pull back aircraft that account is associated with.

Added GET /connect/v2/Contact/{contactId}/FlightLegs

The parameter can be used to pull flight leg data for a passenger on a flight leg. The data points returned are the same as above for the GET/connect/v2/Trip/{tripId}/itinerary endpoint. Requirements for this call are Start Date/Time (UTC), End Date/Time (UTC) and Contact ID (GUID). Results return if:

  • The contact is a passenger on the flight leg when the departure or arrival date (scheduled) UTC are between the start and end date requested.

    • Related Articles

    • Getting Started with Avianis API

      Introduction to the Avianis API The Avianis API provides access to Avianis data and services, enabling integration with various aviation operations. API URL: https://api.avianis.io/ OpenAPI Documentation: ...
    • API Updates (May 2021)

      The following area of the API has been added: Airport/FBO Additional endpoints have been added to the Connect API. This update allows an operation to pull airport info and FBOs/Handlers at that airport. Furthermore, existing endpoints have been ...
    • Application Updates (July 2020)

      The following areas of the Avianis Web Application have been updated: OPERATIONS Leg Status Updates Additional Trip Positions Hangar Service Type CREW RECORDS Training Item Stages SALES Currency Exchange Check OPERATIONS Leg Status Updates General ...
    • Import and Authenticate Avianis API Requests in Postman

      Here’s a step-by-step guide to importing the Avianis OpenAPI URL and generating a call in Postman using Basic Authentication, as well as importing and modifying a cURL request. Section 1: Import the Avianis OpenAPI URL into Postman Open Postman: ...
    • Mobile App Maintenance and Updates (July 2021)

      The following updates have been added to the mobile app: Biometric Security save and sync redesign auto select PIC for each pilot event (Logbook V2) tab to next field NEW FEATURE DETAILS Biometric Security The mobile app has been updated to offer ...