External_Customers
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 | { |
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 | { |
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 | { |
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 | { ..., |
Title | External_Customers.getLinkedCustomerFleets(0/1) 1 - with ACTypes info |
---|---|
Description | |
ample Request | {"method":"External_Customers.getLinkedCustomerFleets","params":[0],"id":1} |
Sample Response | {
..., |
Title | External_Customers.getLinkedCustomerContacts |
---|---|
Description |
|
Sample Request | {"method":"External_Customers.getLinkedCustomerContacts","params":[],"id":1} |
Sample Response | { |
Title | External_Customers.getLinkedCustomer |
---|---|
Description |
|
Sample Request | {"method":"External_Customers.getLinkedCustomer","params":[],"id":1} |
Sample Response | { |
Title | External_Customers.getCustomerContactTypes |
---|---|
Description | External_Customers.getCustomerContactTypes |
Sample Request | {"method":"External_Customers.getCustomerContactTypes","params":[],"id":1} |
Sample Response | { ..., ..., { |