Below are common usage examples for building API workflows using JETNET endpoints. These illustrate the logical sequence of calls and how data flows through an integration.
Example 1: Search for and Select a Company to Download
This simple workflow demonstrates how to search for and retrieve details for a specific company using JETNET API endpoints.
- Step 1: Authenticate using
/Utility/APILoginto obtain a validsecurityToken. - Step 2: Call
/Company/getCompanyListwith search filters (e.g., name, location, business type) to get a list of potential matches. - Step 3: Select a company from the list and call
/Company/getCompanywith the company's unique ID to retrieve full company details.
Example 2: Get Companies Associated with a Model of Aircraft
This more complex workflow demonstrates how to retrieve all companies (potentially owners) associated with aircraft of a specific model, following a sequential chain of API calls:
- Step 1: Call
/Utility/APILoginto authenticate and receive asecurityToken. - Step 2: Use
/Utility/getAircraftModelListto get available models and find the ID of the desired model. - Step 3: Use
/Aircraft/getAircraftListwith the model ID and appropriate filters (e.g.,forsale=true) to retrieve matching aircraft. - Step 4: For each aircraft in the list, call
/Aircraft/getAircraftto get detailed records, including associated company IDs. - Step 5: Use
/Company/getCompanyfor each associated company ID to retrieve full company details.
This approach is helpful for generating ownership or market lists filtered by aircraft characteristics.