Title

External_Customers.getLinkedCustomerPersons

Description

Sample Request

{

"method":"External_Customers.getLinkedCustomerPersons",

"params":[{"airport_id":"3694",

"statuses":["working",

"probation",

"vacation"],

"location_id":"3694",

"search_str":"bara",

"search_type":"name",

"country_id":"1"}],

"id":1

}

Sample Response

{

  "result": {

    "data_list": [

      {

        "npp": 1,

        "id": "27",

        "company_id": "6982",

        "visa_company_id": "0",

        "cust_id": "102",

        "emp_pos_id": "0",

        "name": "Baranets Julia bcvvvvv",

        "initials": "",

        "surname": "Julia 5",

        "cert_no": "",

        "birthday": "1945-03-06",

        "citizenship": "Yugoslavia",

        "citizenship_id": "229",

        "sex": "9",

        "gender": "2",

        "status": "working",

        "pilots_certificate_country_code": "None",

        "self_operated": "1",

        "position": "",

        "note": "",

        "loan_acc_id": "0",

        "loan_rate": "0.00",

        "day_max": "8",

        "day_duty": "12",

        "week_max": "0",

        "week_duty": "0",

        "month_max": "0",

        "month_duty": "0",

        "archive": "0",

        "date_joined": "2011-01-19 22:00:00",

        "not_validated": "0",

        "base_country_name": "",

        "base_airport_iata": "",

        "base_airport_icao": "",

        "base_airport_city": "",

        "qqq": "0",

        "location_id": "3694",

        "location_date": "2016-10-22 00:00:00",

        "couriers_status": "available",

        "last_enquiry_id": "579",

        "mdt_pd": "0",

        "mdt_p7d": "0",

        "mdt_p28d": "0",

        "mdt_pm": "0",

        "mdt_py": "0",

        "mft_pd": "0",

        "mft_p7d": "0",

        "mft_p28d": "0",

        "mft_pm": "0",

        "mft_py": "0",

        "deleted": "0",

        "creator_id": "69",

        "create_date": "2011-06-05 07:31:25",

        "editor_id": "151",

        "edit_date": "2016-12-09 14:23:46",

        "person_aircrafts": "",

        "pilot_code": "BAJ",

        "fdtl_group_id": "1",

        "positions": "CAPTAIN",

        "actypes": "747-45E BDSF, A310, A300-600",

        "location": "UKBB",

        "location_country_id": "216",

        "base_iata": "KBP",

        "base_icao": "UKBB",

        "base_city": "Kiev",

        "base_country": "Afghanistan",

        "attendance": "0",

        "age": "72",

        "courier_rating": null,

        "company": "Test123",

        "creator": "valentin",

        "editor": "anton",

        "cur_balance": "0",

        "vacation": null,

        "fdtl": [

          {

            "type": "duty_time",

            "type_name": "Duty day",

            "condition": "less",

            "limit": "46800",

            "value": 0

          },

          {

            "type": "duty_time",

            "type_name": "Duty 7days",

            "condition": "less",

            "limit": "216000",

            "value": 53100

          },

          {

            "type": "duty_time",

            "type_name": "Duty 28days",

            "condition": "less",

            "limit": "720000",

            "value": 53100

          },

          {

            "type": "rest",

            "type_name": "Rest 7days",

            "condition": "more",

            "limit": "2",

            "value": 5

          },

          {

            "type": "rest",

            "type_name": "Rest 28days",

            "condition": "more",

            "limit": "5",

            "value": 26

          },

          {

            "type": "early",

            "type_name": "Early 7",

            "condition": "less",

            "limit": "3",

            "value": 0

          },

          {

            "type": "lates",

            "type_name": "Late 7",

            "condition": "less",

            "limit": "3",

            "value": 1

          }

        ],

        "e1": -1314,

        "e_name1": "Foreign Passport 1",

        "e2": 150,

        "e_name2": "Foreign Passport 1",

        "e3": 155,

        "e_name3": "Foreign Passport 2",

        "e4": 366,

        "e_name4": "Certificate of Validation",

        "e5": 1527,

        "e_name5": "Medical certificate",

        "e6": "-",

        "e_name6": "",

        "t1": "-945",

        "t_name1": "Emergency and Safety equipment training",

        "t2": "-",

        "t_name2": "",

        "t3": "-",

        "t_name3": "",

        "t4": "-",

        "t_name4": "",

        "m_fly_time": "12:00:00",

        "m_fly_time_act": "00:00:00",

        "m_block_time": "00:00:00",

        "m_work_time": "11:45:00",

        "m_work_time_act": "11:45:00",

        "w_fly_time": "12:00:00",

        "w_fly_time_act": "00:00:00",

        "w_block_time": "00:00:00",

        "w_work_time": "11:45:00",

        "w_work_time_act": "11:45:00",

        "d_fly_time": null,

        "d_fly_time_act": null,

        "d_block_time": null,

        "d_work_time": null,

        "d_work_time_act": null

      }

    ],

    "page": 1,

    "perpage": 20,

    "total": 1,

    "pages": 1

  },

  "id": 1

}


Title

External_Customers.getLinkedCustomerFleetDataFiles (Id used from result of getLinkedCustomerFleetData)

Description

Sample Request

{"method":"External_Customers.getLinkedCustomerFleetDataFiles","params":[67],"id":1}


Sample Response

{
"result": {
"data_list": [
{
"id": "45",
"data_id": "67",
"name": "screenshot_3",
"ext": "png",
"type": "application/octet-stream",
"file_name": "",
"deleted": "0",
"creator_id": "0",
"create_date": "2016-07-18 14:05:06",
"editor_id": "0",
"edit_date": "0000-00-00 00:00:00"
},
{
"id": "46",
"data_id": "67",
"name": "screenshot_4",
"ext": "png",
"type": "application/octet-stream",
"file_name": "",
"deleted": "0",
"creator_id": "0",
"create_date": "2016-07-18 14:05:10",
"editor_id": "0",
"edit_date": "0000-00-00 00:00:00"
}
]
},
"id": 1
}


Title

External_Customers.getLinkedCustomerPersonDocuments (27 is the person ID)

Description

Sample Request

{

"method":"External_Customers.getLinkedCustomerPersonDocuments",

"params":[27],

"id":1

}

Sample Response

{

  "result": {

    "data_list": [

      {

        "id": "239",

        "person_id": "27",

        "type_id": "6",

        "name": "Aviation License",

        "doc_no": "",

        "doc_type": "",

        "expire_date": "0000-00-00 00:00:00",

        "issue_by": "",

        "issue_country": "",

        "issue_date": "2016-10-01",

        "note": null,

        "expired": "0",

        "na": "1",

        "default": "0",

        "deleted": "0",

        "creator_id": "98",

        "create_date": "2016-06-14 16:05:42",

        "editor_id": "178",

        "edit_date": "2016-11-15 13:53:29",

        "files": "1",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "kote",

        "editor": "alexander"

      },

      {

        "id": "25",

        "person_id": "27",

        "type_id": "3",

        "name": "Foreign Passport 1",

        "doc_no": " M 95643822",

        "doc_type": "INT",

        "expire_date": "2013-05-10 21:00:00",

        "issue_by": "Kiev",

        "issue_country": "UKR",

        "issue_date": "2009-05-11",

        "note": null,

        "expired": "0",

        "na": "0",

        "default": "0",

        "deleted": "0",

        "creator_id": "69",

        "create_date": "2011-06-05 07:47:44",

        "editor_id": "151",

        "edit_date": "2016-10-13 11:43:17",

        "files": "0",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "valentin",

        "editor": "anton"

      },

      {

        "id": "24",

        "person_id": "27",

        "type_id": "3",

        "name": "Foreign Passport 1",

        "doc_no": "099218503",

        "doc_type": "CMN",

        "expire_date": "2017-05-13 21:00:00",

        "issue_by": "CAO",

        "issue_country": "ZWE",

        "issue_date": "2011-06-05",

        "note": null,

        "expired": "0",

        "na": "0",

        "default": "1",

        "deleted": "0",

        "creator_id": "69",

        "create_date": "2011-06-05 07:43:48",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:08:14",

        "files": "2",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "valentin",

        "editor": "anton"

      },

      {

        "id": "245",

        "person_id": "27",

        "type_id": "11",

        "name": "Foreign Passport 2",

        "doc_no": "099218503",

        "doc_type": "int",

        "expire_date": "2017-05-19 00:00:00",

        "issue_by": "test",

        "issue_country": "UKR",

        "issue_date": "2016-10-04",

        "note": "",

        "expired": "0",

        "na": "0",

        "default": "0",

        "deleted": "0",

        "creator_id": "178",

        "create_date": "2016-10-04 09:31:32",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:08:27",

        "files": "0",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "alexander",

        "editor": "anton"

      },

      {

        "id": "22",

        "person_id": "27",

        "type_id": "10",

        "name": "Certificate of Validation",

        "doc_no": "31.13-6584-332",

        "doc_type": "CV",

        "expire_date": "2017-12-15 21:00:00",

        "issue_by": "SAA",

        "issue_country": "UKR",

        "issue_date": "2011-02-15",

        "note": null,

        "expired": "0",

        "na": "0",

        "default": "0",

        "deleted": "0",

        "creator_id": "69",

        "create_date": "2011-06-05 07:37:03",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:08:47",

        "files": "0",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "valentin",

        "editor": "anton"

      },

      {

        "id": "23",

        "person_id": "27",

        "type_id": "7",

        "name": "Medical certificate",

        "doc_no": "0",

        "doc_type": "4",

        "expire_date": "2021-02-18 22:00:00",

        "issue_by": "IAT",

        "issue_country": "UKR",

        "issue_date": "2011-02-10",

        "note": null,

        "expired": "0",

        "na": "0",

        "default": "0",

        "deleted": "0",

        "creator_id": "69",

        "create_date": "2011-06-05 07:38:30",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:08:35",

        "files": "1",

        "person_name": "Baranets Julia bcvvvvv",

        "company": "Test123",

        "creator": "valentin",

        "editor": "anton"

      }

    ]

  },

  "id": 1

}

Title

External_Customers.getLinkedCustomerPersonDocumentsFiles(239 is the document ID)

Description

Sample Request

{"method":"External_Customers.getLinkedCustomerPersonDocumentsFiles","params":[239],"id":1}


Sample Response

{
"result": {
"data_list": [
{
"id": "20",
"data_id": "239",
"name": "avialic",
"ext": "png",
"type": "application/octet-stream",
"deleted": "0",
"creator_id": "151",
"create_date": "2016-12-14 16:00:41",
"editor_id": "0",
"edit_date": "0000-00-00 00:00:00"
}
]
},
"id": 1
}

Title

Link for downloading person file

Description

 host/system/downloads/external/CustomerPersonDocumentFile.php?file=(base64 decoded file id) File ID is ID from getLinkedCustomerPersonDocumentsFiles

Sample Request

host/system/downloads/external/CustomerPersonDocumentFile.php?file=Mwo=

Sample Response

opens file


Title

External_Customers.getLinkedCustomerPassengers

Description

Sample Request

{

"method":"External_Customers.getLinkedCustomerPassengers",

"params":[],

"id":1

}

Sample Response

{

  "result": {

    "data_list": [

      {

        "id": "15",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "123456",

        "passport_in_use": "1",

        "dob": "1989-12-08",

        "gender": "1",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "0",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "ALB",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "2017-02-28 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "2017-01-31 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "Vasechkin",

        "hobbies": "",

        "firstname": "Petya",

        "middlename": "",

        "phone": "111222",

        "email": "petya@gmail.com",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "151",

        "create_date": "2016-06-17 08:03:40",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:26:48",

        "creator": "anton",

        "editor": "anton",

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      },

      {

        "id": "39",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "AA111222",

        "passport_in_use": "1",

        "dob": "1980-01-01",

        "gender": "1",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "0",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "Russian",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "2017-09-20 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "2014-09-20 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "Semenov",

        "hobbies": "",

        "firstname": "Semen",

        "middlename": "Semenovich",

        "phone": "111-111",

        "email": "semen@semen.net",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "151",

        "create_date": "2016-07-04 10:39:40",

        "editor_id": "0",

        "edit_date": "0000-00-00 00:00:00",

        "creator": "anton",

        "editor": null,

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      },

      {

        "id": "53",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "fsdfdsf",

        "passport_in_use": "1",

        "dob": "2016-07-06",

        "gender": "1",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "0",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "sdfsd",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "2016-07-13 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "2016-07-13 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "ss",

        "hobbies": "",

        "firstname": "sss",

        "middlename": "sss",

        "phone": "twer",

        "email": "eter",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "116",

        "create_date": "2016-07-13 10:24:34",

        "editor_id": "116",

        "edit_date": "2016-07-13 10:21:11",

        "creator": "denis",

        "editor": "denis",

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      },

      {

        "id": "65",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "asdada",

        "passport_in_use": "1",

        "dob": "0000-00-00",

        "gender": "0",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "2106",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "sadasd",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "0000-00-00 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "0000-00-00 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "e",

        "hobbies": "",

        "firstname": "sd",

        "middlename": "ds",

        "phone": "we4324",

        "email": "sd",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "116",

        "create_date": "2016-07-14 11:01:45",

        "editor_id": "116",

        "edit_date": "2016-07-14 11:15:17",

        "creator": "denis",

        "editor": "denis",

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      },

      {

        "id": "74",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "",

        "passport_in_use": "1",

        "dob": "0000-00-00",

        "gender": "0",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "0",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "0000-00-00 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "0000-00-00 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "",

        "hobbies": "",

        "firstname": "passenger",

        "middlename": "111",

        "phone": "",

        "email": "v.aw@aw.rus",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "104",

        "create_date": "2016-07-22 14:42:58",

        "editor_id": "104",

        "edit_date": "2016-07-22 14:45:06",

        "creator": "fenrir",

        "editor": "fenrir",

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      },

      {

        "id": "75",

        "slx_id": "",

        "from_wp_id": "0",

        "to_wp_id": "0",

        "customer_id": "24",

        "contact_id": "0",

        "salutation": "",

        "accountpassengerid": "",

        "passportnumber": "",

        "passport_in_use": "1",

        "dob": "0000-00-00",

        "gender": "0",

        "position": "",

        "gd_print": "1",

        "stay_length": "",

        "trip_reason": "",

        "declarations": "",

        "flight_id": "2113",

        "parent_id": "0",

        "visanotes": "",

        "preferredtype": "",

        "ageofaircraft": "",

        "smoking": "",

        "bed": "0",

        "entertainmentnotes": "",

        "cateringnotes": "",

        "drinksnotes": "",

        "allergies": "",

        "transportationrequired": "",

        "preferredtypetransport": "",

        "transportcompany": "",

        "nationality": "",

        "nationality2": "",

        "citizenship_id": "0",

        "clientprofilenotes": "",

        "expirydate": "0000-00-00 00:00:00",

        "expirydate2": "0000-00-00 00:00:00",

        "issuedate": "0000-00-00 00:00:00",

        "issuedate2": "0000-00-00 00:00:00",

        "passportnumber2": "",

        "suffix": null,

        "remarks": "",

        "prefix": "",

        "petsnotes": "",

        "maritalstatus": "",

        "lastname": "",

        "hobbies": "",

        "firstname": "passenger",

        "middlename": "111",

        "phone": "",

        "email": "v.aw@aw.rup",

        "passportexpiryalert": "",

        "contactid": "",

        "accountid": "",

        "generalnotes": "",

        "childrennotes": "",

        "deleted": "0",

        "creator_id": "104",

        "create_date": "2016-07-22 14:46:07",

        "editor_id": "0",

        "edit_date": "0000-00-00 00:00:00",

        "creator": "fenrir",

        "editor": null,

        "from": "",

        "to": "",

        "from_prior": null,

        "to_prior": null

      }

    ]

  },

  "id": 1

}


Title

External_Customers.getLinkedCustomerPassengerDocuments (15 – id of passenger)

Description

Sample Request

{

"method":"External_Customers.getLinkedCustomerPassengerDocuments",

"params":[15],

"id":1

}

Sample Response

{

  "result": {

    "data_list": [

      {

        "id": "9",

        "passenger_id": "15",

        "type_id": "0",

        "name": "Foreign Passport",

        "doc_no": "ME148813",

        "doc_type": "Passport",

        "expire_date": "2020-12-17 00:00:00",

        "issue_by": "",

        "issue_country": "UA",

        "issue_date": "2016-04-13",

        "note": "",

        "expired": "0",

        "na": "0",

        "deleted": "0",

        "creator_id": "151",

        "create_date": "2016-12-14 16:27:57",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:27:57",

        "type": null,

        "files_cnt": "0",

        "creator": "anton",

        "editor": "anton"

      },

      {

        "id": "10",

        "passenger_id": "15",

        "type_id": "0",

        "name": "Domestic Passport",

        "doc_no": "EE169899",

        "doc_type": "Domestic Passport",

        "expire_date": "2022-05-13 00:00:00",

        "issue_by": "",

        "issue_country": "AI",

        "issue_date": "2015-07-09",

        "note": null,

        "expired": "0",

        "na": "0",

        "deleted": "0",

        "creator_id": "151",

        "create_date": "2016-12-14 16:33:39",

        "editor_id": "151",

        "edit_date": "2016-12-14 16:33:39",

        "type": null,

        "files_cnt": "0",

        "creator": "anton",

        "editor": "anton"

      }

    ]

  },

  "id": 1

}


Title

External_Customers. updateLinkedCustomerFleetData

Description

Sample Request

{

 "method":"External_Customers.updateLinkedCustomerFleetData",

   "params":

       [

           {

               "aircraft_id":20407,

               "id":83,

               "name":"Insuarance New",

               "type_id":"12",

               "no":"152435",

               "issue_by":"test test",

               "note":"tetest",

               "issue_date":"2015-01-01",

               "expire_date":"2016-02-01",

               "issue_country":"UA"

           }

       ],

   "id":1

}

Sample Response

{

   "result":83,

   "id":"1"

}

Title

External_Customers.getLinkedCustomerPassengerDocumentFiles(9 is the document ID)

Description

Sample Request

{"method":"External_Customers.getLinkedCustomerPassengerDocumentFiles","params":[9],"id":1}

Sample Response

{
"result": {
"data_list": [
{
"id": "4",
"data_id": "9",
"name": "configurator_steps",
"ext": "txt",
"type": "application/octet-stream",
"deleted": "0",
"creator_id": "104",
"create_date": "2017-01-12 08:46:01",
"editor_id": "0",
"edit_date": "0000-00-00 00:00:00"
}

Title

Link for downloading passenger file

Description

 host/system/downloads/external/CustomerPassengerDocumentFile?file=(base64 decoded file id) File ID is ID from getLinkedCustomerPassengerDocumentsFiles

Sample Request

host/system/downloads/external/CustomerPassengerDocumentFile.php?file=Mwo=

Sample Response

opens file


Title

External_Customers.getLinkedCustomerContactsData(86 is the contact ID)

Description

Result of this method can be found in data property of getLinkedCustomerContacts method

ample Request

{"method":"External_Customers.getLinkedCustomerContactsData","params":[86],"id":1}

Sample Response

{
"result": {
"data_list": [
{
"id": "272",
"slx_id": "",
"contact_id": "86",
"type_id": "6",
"content": "kiev, bla-bla street, app 3, povorot nalevo",
"notes": "",
"person": "",
"type": "Address"
},
...,

...,
]
},
"id": 1
}


Title

External_Customers.getLinkedCustomerFleets(0/1) 1 - with ACTypes info

Description


ample Request

{"method":"External_Customers.getLinkedCustomerFleets","params":[0],"id":1}

Sample Response

{
"result": {
"data_list": [
{
"id": "2640",
"slx_id": "",
"cust_id": "7010",
"fas_id": "0",
"company_id": "0",
"reg_no": "0125-55",
"actype_id": "1000",
"gsa_id": "8",
"icao": "",
"status": "parked",
"region": "",
"aircraft_wake": "",
"empty_weight": "234234",
"height": "",
"length": "",
"mtow": "34.470",
"mvol": "0.000",
"remark": "",
"minres": "2147483647",
"speed": "234243324234",
"wings_span": "",
"capacity": "0.00",
"capacity_m3": "0.00",
"serial_number": "",
"manufacture_year": "0",
"refurbishment_year": "2015",
"seats": "0",
"seats_b": "0",
"seats_f": "345345",
"combi": "0",
"cargo": "0",
"vip": "0",
"wide_body": "0",
"narrow_body": "0",
"helicopter": "0",
"medivac": "",
"smoking": "Captain's discretion",
"sleep": "vcvdfvfdfvdvfdv",
"24h": "",
"wifi": "",
"military_zones": "1",
"bed": "1",
"russian_domestic": "1",
"flight_attendant": "On Request",
"owners_approval": "0",
"pets": "Sometimes",
"hot_galley": "Cold",
"lcy_approved": "No",
"dg": "",
"visa_waiver": "",
"fuel_type": "avgas",
"base_id": "0",
"carrier_id": "8",
"reg_country": null,
"slx_country": "",
"specific_payload": "0",
"changed_fields": "",
"configuration": "sfsdfsf",
"reg_country_id": "0",
"delivery_date": "0",
"ex_reg_no": "0125-55",
"fuselage": "0",
"galley": "",
"other_base_id": "0",
"lse_code": "",
"num_pallet_lower_deck": "0",
"num_pallet_mian_deck": "0",
"noise_category": "0",
"power_supply": "1",
"engines": "",
"sel_cal": "",
"serial_key": "",
"short_code": "",
"aircraft_status": "Unknown",
"toilet": "1",
"type_note": "asdasddfsdfsfs",
"ownership": "MANAGEMENT",
"ops_regulation": "JAR-OPS",
"weather_minima": "dsfsdfsd",
"caa_flight_categories": "fsdfdsf",
"registration_background": "zgfgg",
"crew_information": "dsfdsfds",
"updated_by_import": "0",
"general_sales_agent_slx_id": "",
"ready_to_fly": "1",
"self_operated": "1",
"url": "",
"note": "",
"default_unit": "lbs",
"deleted": "0",
"creator_id": "2",
"create_date": "2014-11-19 15:49:24",
"editor_id": "151",
"edit_date": "2017-01-05 17:28:09",
"exclude_from_import_udpate": "0",
"nose_door": "0",
"reg_country_code": null,
"base": null,
"actype": {
"id": "1000",
"actype": "A300-600",
"icao": "A306",
"type_id": "1",
"mpayl": "",
"mtow": "171700",
"mlw": "",
"maxfuel": "68150",
"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,8,9,10,203,204,217,7005,8,7091",
"creator": null,
"editor": "serega"
},
"actype_full_name": "AIRBUS A300-600",
"carrier": "BetacaRGO",
"carrier_code": "BAX",
"carrier_type": "customer",
"gsa": "BetacaRGO",
"gsa_type": "customer",
"carrier_country_name": "United States of America",
"classification": null,
"actype_type": "CommJ",
"creator": "01",
"editor": "anton",
"fuel": "",
"company": null,
"aircraft_id": "2640",
"owner_full_name": "sssssswwwwwwssssss",
"owner_address": null,
"template_notes": null,
"current_status": "parked",
"e1": -347,
"e1_name": "Insuarance New",
"e2": -150,
"e2_name": "Registration Certificate",
"e3": "-",
"e3_name": "-",
"flight_no": "AWEP1609027",
"flight_id": "4486",
"arrival_date": "2016-10-26 09:55:00",
"parking": "",
"last_position": "UWKD",
"next_maintenance": "-",
"b1": "-",
"b1_name": "-",
"b2": "-",
"b2_name": "-",
"operator": {
"id": "8",
"parent_id": "0",
"slx_id": "",
"default": "0",
"type": "customer",
"type_other": "",
"type_payment": "",
"prospect": "0",
"company_id": "60",
"broker_id": "79",
"broker_amd_code": "AT",
"status": "Active",
"source_type_id": "0",
"source_descr_id": "0",
"amd_code": "",
"customer_code": "0",
"pin_code": "0",
"invoice_no": "0",
"agreement_code": "AA",
"company": "BetacaRGO",
"company_full_name": "BetaCargoOffName",
"company_short_name": "",
"principal_owner_name": "",
"sita": "sita",
"aftn": "aftn",
"telex": "",
"license_no": "",
"category": "",
"iata_code": "BAX",
"icao_code": "UNB",
"prefix": "pre",
"agent_iata_code": "",
"iata_cass_number": "",
"vat_id": "",
"fuel_margin": "0.000000",
"fuel_margin_type": "all_in",
"fuel_markup_usg": "5.0000000",
"fuel_markup_ton": "6.0000000",
"fuel_markup_ltr": "7.0000000",
"region_iata": "",
"region_name": "",
"country_id": "219",
"country_state_id": "5",
"airport_id": "0",
"city": "Barnaul",
"web_site": "web site",
"track_url": "",
"order_url": "",
"source": "",
"greeting_list": "",
"currency_id": "4",
"payback_period": "0",
"payback_amount": "0.00",
"bank_guarantee": "0.00",
"bank_guarantee_date": "0000-00-00",
"acc_notes": "",
"agreement_no": "0",
"ch_agreement_no": "1",
"revenue_type1_id": "1",
"revenue_type2_id": "19",
"main_fax": "main fax",
"main_email": "main@email.bl",
"cfb_jpfleet_airline_id": "jp id",
"cfb_vat_number": "rterny un",
"creditrating": "er57j895mko",
"division": "",
"address_slx_id": "",
"vip": "0",
"pax": "0",
"cargo": "0",
"compliance_check": "Green OK",
"main_phone": "main phone",
"main_mobile": "",
"main_frequency": "",
"postal_code": "",
"brief_type": "",
"industry": "123",
"intercompany": "0",
"child_serial_no": "0",
"country_of_registration_id": "0",
"company_size_id": "0",
"date_on_board": "0000-00-00 00:00:00",
"key_decision_maker": null,
"key_decision_maker_title": null,
"social_linkedin": null,
"social_twitter": null,
"social_facebook": null,
"social_googleplus": null,
"social_other": null,
"team_id": "0",
"bank_commission": "0",
"job_subtype_id": "0",
"commission_amount": "0.00",
"commission_currency_id": "0",
"customer_is_also_supplier": "0",
"prior": "0",
"customer_priority_id": "0",
"loyalty_id": "0",
"deleted": "0",
"note": "стремный какой-то",
"creator_id": "2",
"create_date": "2010-08-31 09:49:12",
"editor_id": "178",
"edit_date": "2016-10-03 14:34:37",
"position": "",
"department": "",
"ecompany_id": "0",
"date_joined": "",
"e_id": "",
"hr_id": "",
"bank": "",
"iban": "",
"currency": "EUR",
"creator": "01"
}
},


...,

...,
]
},
"id": 1
}


Title

External_Customers.getLinkedCustomerContacts

Description

Sample Request

{"method":"External_Customers.getLinkedCustomerContacts","params":[],"id":1}

Sample Response

{
"result": {
"data_list": [
{
"id": "86",
"type": "",
"slx_id": "",
"customer_slx_id": "",
"customer_id": "24",
"country_id": "2",
"airport_id": "0",
"team_id": "0",
"airport_contact": "0",
"default_for_country": "0",
"default_for_airport": "0",
"default_for_ops": "0",
"decision_maker": "0",
"opt_out": "0",
"def": "1",
"contact_name": "Vovka Morkovka",
"contact_surname": "",
"contact_middlename": "",
"contact_prefix": "Mr",
"contact_suffix": "",
"contact_knownas": "",
"address_id": "0",
"address_slx_id": "",
"status": "",
"knownas": "",
"broker_slx_id": "",
"broker_id": "0",
"compliance_check": "pending",
"contact_descr": "",
"deleted": "0",
"teams": null,
"airports": "NULL",
"access_types": null,
"data": [
{
"id": "272",
"slx_id": "",
"contact_id": "86",
"type_id": "6",
"content": "kiev, bla-bla street, app 3, povorot nalevo",
"notes": "",
"person": "",
"type": "Address"
},
{
"id": "31674",
"slx_id": "",
"contact_id": "86",
"type_id": "8",
"content": "USA",
"notes": "",
"person": "",
"type": "Country"
},
{
"id": "31672",
"slx_id": "",
"contact_id": "86",
"type_id": "20",
"content": "office 2",
"notes": "",
"person": "",
"type": "Office"
},
{
"id": "259",
"slx_id": "",
"contact_id": "86",
"type_id": "1",
"content": "123",
"notes": "",
"person": "",
"type": "Tel"
},
{
"id": "258",
"slx_id": "",
"contact_id": "86",
"type_id": "1",
"content": "+380443601415",
"notes": "",
"person": "",
"type": "Tel"
},
{
"id": "256",
"slx_id": "",
"contact_id": "86",
"type_id": "10",
"content": "www.acompany.ru",
"notes": "",
"person": "",
"type": "WWW"
},
{
"id": "31673",
"slx_id": "",
"contact_id": "86",
"type_id": "21",
"content": "Alaska",
"notes": "",
"person": "",
"type": "Home"
},
{
"id": "257",
"slx_id": "",
"contact_id": "86",
"type_id": "5",
"content": "yonastar@eim.ae",
"notes": "",
"person": "",
"type": "E-Mail"
}
]
},
...,
...,
...,
]
},
"id": 1
}

Title

External_Customers.getLinkedCustomer

Description

Sample Request

{"method":"External_Customers.getLinkedCustomer","params":[],"id":1}

Sample Response

{
"result": {
"id": "24",
"parent_id": "0",
"slx_id": "",
"default": "0",
"type": "customer",
"type_other": "",
"type_payment": "PREPAYMENT",
"prospect": "0",
"company_id": "0",
"broker_id": "79",
"broker_amd_code": "AT",
"status": "Active",
"source_type_id": "2",
"source_descr_id": "35",
"amd_code": "",
"customer_code": "00078",
"pin_code": "0",
"invoice_no": "11",
"agreement_code": "ARGO",
"company": "ARGO",
"company_full_name": "ARGO International",
"company_short_name": "",
"principal_owner_name": "",
"sita": "",
"aftn": "",
"telex": "",
"license_no": "234678098",
"category": "chart",
"iata_code": "",
"icao_code": "",
"prefix": "",
"agent_iata_code": "IATA code",
"iata_cass_number": "",
"vat_id": "VAT code",
"fuel_margin": "3.000000",
"fuel_margin_type": "all_in",
"fuel_markup_usg": "0.0000000",
"fuel_markup_ton": "0.0000000",
"fuel_markup_ltr": "0.0000000",
"region_iata": "",
"region_name": "",
"country_id": "217",
"country_state_id": "0",
"airport_id": "0",
"city": "",
"web_site": "www.argo.ua",
"track_url": "",
"order_url": "",
"source": "",
"greeting_list": "",
"currency_id": "17",
"payback_period": "4",
"payback_amount": "600.00",
"bank_guarantee": "0.00",
"bank_guarantee_date": "0000-00-00",
"acc_notes": "",
"agreement_no": "0",
"ch_agreement_no": "60",
"revenue_type1_id": "3",
"revenue_type2_id": "55",
"main_fax": "",
"main_email": "",
"cfb_jpfleet_airline_id": "",
"cfb_vat_number": "",
"creditrating": "",
"division": "",
"address_slx_id": "",
"vip": "0",
"pax": "0",
"cargo": "0",
"compliance_check": "green",
"main_phone": "+36984122000000",
"main_mobile": "",
"main_frequency": "",
"postal_code": "",
"brief_type": "",
"industry": "",
"intercompany": "0",
"child_serial_no": "0",
"country_of_registration_id": "0",
"company_size_id": "0",
"date_on_board": "0000-00-00 00:00:00",
"key_decision_maker": null,
"key_decision_maker_title": null,
"social_linkedin": null,
"social_twitter": null,
"social_facebook": null,
"social_googleplus": null,
"social_other": null,
"team_id": "0",
"bank_commission": "0",
"job_subtype_id": "0",
"commission_amount": "0.00",
"commission_currency_id": "0",
"customer_is_also_supplier": "0",
"prior": "0",
"customer_priority_id": "0",
"loyalty_id": "0",
"deleted": "0",
"note": "",
"creator_id": "2",
"create_date": "2010-09-02 08:34:47",
"editor_id": "178",
"edit_date": "2016-08-18 15:27:47",
"position": "",
"department": "",
"ecompany_id": "0",
"date_joined": "",
"e_id": "",
"hr_id": "",
"bank": "Nadra bank",
"iban": "EBAN",
"currency": "UAH",
"creator": "01"
},
"id": 1
}

Title

External_Customers.getCustomerContactTypes

Description

External_Customers.getCustomerContactTypes

Sample Request

{"method":"External_Customers.getCustomerContactTypes","params":[],"id":1}

Sample Response

{
"result": {
"data_list": [
{
"id": "19",
"type": "Duty 24h",
"prior": "1"
},
{
"id": "6",
"type": "Address",
"prior": "1"
},
{
"id": "9",
"type": "P.O. Box",
"prior": "2"
},
{
"id": "7",
"type": "City",
"prior": "3"
},
...,

...,

...,

{
"id": "26",
"type": "Frequency",
"prior": "90"
}
]
},
"id": 1
}