Title

External_V1.getCountriesList

Description

Sample Request

{

"method":"External_V1.getCountriesList",

"params":[{}],

"id":1

}

Sample Response

{

"result":[{"id":"1",

"country_name":"Afghanistan",

"country_code_a3":"AFG",

"region":"Asia",

"aircraft_registration_code":"YA",

"note":"",

"sanctions":"Significant",

"airports_cnt":"33",

"carriers_cnt":"0"

}


Title

External_V1.getActypesList

Description

Sample Request

{

   "method":"External_V1.getActypesList",

   "params":{},

   "id":1

Sample Response

{

   "result":

       [

           {

               "id":"1000",

               "actype":"A300-600",

               "icao":"A306",

               "type_id":"1",

               "mpayl":"",

               "mtow":"",

               "mzfw":"",

               "mlw":"",

               "maxfuel":"",

               "minfuel":"",

               "cbm":"0.00",

               "our":"1",

               "cr_speed":"544",

               "taxitime":"",

               "minres":"",

               "pax_max":"265",

               "bag_per_pax":"0",

               "pps_name":"A300-605R",

               "engines":"GE 80C2A3",

               "country_name":null,            "carriers_ids":"7,9,11,40,217,7101,217",

               "creator":null,

               "editor":"kote"

           },

           {...},...

       ],

   "id":1

}




Title

External_V1.getAircraftDocumentTypes

Description

Sample Request

{

   "method":"External_V1.getAircraftDocumentTypes",

   "params":[{}],

   "id":1

}

Sample Response

{

   "result":

       {

           "data_list":

               [

                   {

                       "id":"1",

                       "prior":"6",

                       "name":"3 Letter ICAO Code",

                       "deleted":"0"

                   }, {...},...

               ]

       },

   "id":"1"

}


Title

External_V1.getMessages

Description

Sample Request

   "method":"External_V1.getMessages",

   "params":{ 

      "0":"0"

   },

   "id":1

}

Sample Response

{

            "result": [{

            "id": "840",

                   "service_id": "3752",

                   "airport_id": "930",

                   "revision_number": "C\u0420\u0420\u0420-ACME-BQH-160009",

                   "comment_type": "auto",

                   "comment_access": "2",

                   "sent": "0",

                   "message": "Service Created",

                   "creator_id": "104",

                   "create_date": "2016-03-28 08:32:48",

                   "deleted": "0",

                   "creator": "fenrir",

                   "stored_airport": "EGKB\/BQH",

                   "time_sec": 1459153968,

                   "date": "28 Mar 2016 08:32:48",

                   "type": "Cash Request",

                   "flight_id": "1914",

            },

            {...},..

}],

            "id": "1"

}


Title

External_V1.getFlightWaypointServiceComments

Description

Sample Request

"method":"External_V1.getFlightWaypointServiceComments",

   "params":

      "0":"0"

   },

   "id":1

}

Sample Response

{

            "result": [{

            "id": "840",

                   "service_id": "3752",

                   "airport_id": "930",

                   "revision_number": "C\u0420\u0420\u0420-ACME-BQH-160009",

                   "comment_type": "auto",

                   "comment_access": "2",

                   "sent": "0",

                   "message": "Service Created",

                   "creator_id": "104",

                   "create_date": "2016-03-28 08:32:48",

                   "deleted": "0",

                   "creator": "fenrir",

                   "stored_airport": "EGKB\/BQH",

                   "time_sec": 1459153968,

                   "date": "28 Mar 2016 08:32:48",

                   "type": "Cash Request"

            },

            {...},..

}],

            "id": "1"

}


Title

External_V1.addCustomerDevice

Description

Sample Request

   "method":"External_V1.addCustomerDevice",

   "params":

      "0":"token&&&token",

      "1":"android" (or ios)

   },

   "id":1

}

Sample Response

{

            "result": 1,

            "id": "1"

}


Title

External_V1.setCommentAlertsAsRead

Description

Sample Request

   "method":"External_V1.setCommentAlertsAsRead

",

   "params":{ 

      "0":["comment_ids", "ids2"],

   },

   "id":1

}

Sample Response

{

            "result": 1,

            "id": "1"

}