Skip to main content
Skip table of contents

External_Udb

Title

External_Udb.islogged()

Description

 

Sample Request

{

"method":"External_Udb.islogged",

"params":[],

"id":1

}

Sample Response

{

"result":106,

"id":1

}

OR

{

"result":false,

"id":1

}


Title

External_Udb.login

Description

 

Sample Request

   "method":"External_Udb.login",

   "params":[ 

      { 

         "login":"login",

         "passwd":"passwd"

      }

   ],

   "id":1

}

Sample Response

{

   "result":

   {

       "status":true,

       "id":"103"

   },

   "id":"1"

IF SUCCES, OR

{

   "result":

   {

       "status":false,

       "id":-1,

       "error":"wrong password"

   },

   "id":"1"

}

IF ERROR


Title

External_Udb.logout()

Description

 

Sample Request

{

"method":"External_Udb.logout",

"params":[{}],

"id":1

}

Sample Response

{

"result":1,

"id":1

}


Title

External_Udb.in_group

Description

for checking if the user is in group or not

Sample Request

{

"method":"External_Udb.in_group",

"params":["external_admin_all_companies"],

"id":1

}

Sample Response

{

"result":true,

"id":1

}


Title

External_Udb.update_user()

Description

 

Sample Request

{

"method":"External_Udb.update_user",

"params":[

{"id":"141",

"email":"E-mail",

"login":"ex_alex",

"address":"",

"city":"",

"zip":"43",

"region":"",

"phone":"",

"url":"",

"country":"",

"customer_id":"31",

"company_id":"60"}

],

"id":1

}

Sample Response

{

"result":{"status":141},

"id":1

}


Title

External_Udb.updateUserContact()

Description

 

Sample Request

{

"method":"External_Udb.updateUserContact",

"params":[

{

 "id" : "field value",

 "type" : "field value",

 "customer_slx_id" : "field value",

 "customer_id" : "field value",

 "country_id" : "field value",

 "airport_id" : "field value",

 "team_id" : "field value",

 "airport_contact" : "field value",

 "default_for_country" : "field value",

 "default_for_airport" : "field value",

 "default_for_ops" : "field value",

 "decision_maker" : "field value",

 "opt_out" : "field value",

 "def" : "field value",

 "contact_name" : "field value",

 "contact_surname" : "field value",

 "contact_middlename" : "field value",

 "contact_prefix" : "field value",

 "contact_suffix" : "field value",

 "contact_knownas" : "field value",

 "address_id" : "field value",

 "status" : "field value",

 "knownas" : "field value",

 "broker_slx_id" : "field value",

 "broker_id" : "field value",

 "compliance_check" : "field value",

 "contact_descr" : "field value",

}

],

"id":1

}

Sample Response

{

"result":"179",

"id":1

}


Title

External_Udb.updateUserContactData()

Description

 

Sample Request

{

"method":"External_Udb.updateUserContactData",

"params":[

{

 "id" : "field value",

 "contact_id" : "field value",

 "type_id" : "field value",

 "content" : "field value",

 "notes" : "field value",

 "person" : "field value"

}

],

"id":1

}

Sample Response

{

"result":"56",

"id":1

}


Title

External_Udb.getCompanies

Description

 

Sample Request

{

"method":"External_Udb.getCompanies",

"params":[],

"id":1

}

Sample Response

  {

  "result": [

    {

      "id": "59",

      "parent_id": "0",

      "slx_id": "",

      "default": "1",

      "type": "company",

      "type_other": "",

      "type_payment": "",

      "prospect": "0",

      "company_id": "0",

      "broker_id": "0",

      "broker_amd_code": "",

      "status": "Customer",

      "source_type_id": "0",

      "source_descr_id": "0",

      "amd_code": "AWE",

      "customer_code": "0",

      "pin_code": "0",

      "invoice_no": "54",

      "agreement_code": "",

      "company": "Awery Demo Company",

      "company_full_name": "Awery Demo Company",

      "company_short_name": "",

      "principal_owner_name": "",

      "sita": "",

      "aftn": "",

      "telex": "",

      "license_no": "",

      "category": "",

      "iata_code": "",

      "icao_code": "",

      "prefix": "",

      "agent_iata_code": "",

      "iata_cass_number": "",

      "vat_id": "",

      "fuel_margin": "0.000000",

      "fuel_margin_type": "all_in",

      "region_iata": "",

      "region_name": "",

      "country_id": "0",

      "country_state_id": "0",

      "airport_id": "0",

      "city": "",

      "web_site": "www.awery.net",

      "track_url": "",

      "order_url": "",

      "source": "",

      "greeting_list": "",

      "currency_id": "0",

      "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": "0",

      "revenue_type1_id": "0",

      "revenue_type2_id": "0",

      "main_fax": "",

      "main_email": "",

      "cfb_jpfleet_airline_id": "",

      "cfb_vat_number": "",

      "creditrating": "",

      "division": "",

      "address_slx_id": "",

      "vip": "0",

      "pax": "0",

      "cargo": "0",

      "compliance_check": "",

      "main_phone": "",

      "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",

      "competitor_flight_service_provider_id": "0",

      "competitor_fuel_provider_id": "0",

      "competitor_fuel_carnet_cards_id": "0",

      "competitor_flight_planning_id": "0",

      "competitor_ground_handler_id": "0",

      "competitor_notes": null,

      "late_fee": "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": "12345",

      "creator_id": "0",

      "create_date": "2011-03-23 12:00:36",

      "editor_id": "151",

      "edit_date": "2016-05-16 14:07:36",

      "allow": "1"

    },

],

  "id": 1

}


Title

External_Udb.getCustomers

Description

 

Sample Request

{

"method":"External_Udb.getCustomers",

"params":[],

"id":1

}

Sample Response

{

  "result": [

    {

      "id": "228",

      "type": "customer",

      "company": "",

      "company_full_name": "",

      "company_id": "0",

      "team_id": "0",

      "scompany": null,

      "amd_code": "",

      "currency_id": "0",

      "prospect": "0",

      "currency": null,

      "broker_amd_code": "",

      "revenue_type1_id": "0",

      "revenue_type2_id": "0",

      "brief_type": "",

      "compliance_check": "",

      "job_subtype_id": "0",

      "main_email": "",

      "main_phone": "",

      "country_name": null,

      "city": "",

      "status": "Active",

      "deleted": "0"

    },

...

],

  "id": 1

}


Title

External_Udb.getUserList() - will filter by customer_id (auto)

Description

 

Sample Request

{

"method":"External_Udb.getUserList",

"params":[],

"id":1

}

Sample Response

{

  "result": [

    {

      "id": "141",

      "email": "E-mail",

      "login": "ex_alex",

      "company_name": "A Company Making Everything",

      "company_id": "60",

      "customer_id": "31",

      "address": "",

      "city": "",

      "zip": "43",

      "country": "",

      "region": "",

      "phone": "",

      "url": "",

      "fname": "",

      "mname": "",

      "sname": "",

      "team": "",

      "contact": {

        "data_list": [

          {

            "id": "271",

            "slx_id": "",

            "contact_id": "6",

            "type_id": "6",

            "content": "United Arab Emirates",

            "notes": "",

            "person": "",

            "type": "Address"

          },

          {

            "id": "16",

            "slx_id": "",

            "contact_id": "6",

            "type_id": "1",

            "content": "+380443601415",

            "notes": "",

            "person": "",

            "type": "Tel"

          },

          {

            "id": "47",

            "slx_id": "",

            "contact_id": "6",

            "type_id": "1",

            "content": "123",

            "notes": "87777",

            "person": "",

            "type": "Tel"

          },

          {

            "id": "14",

            "slx_id": "",

            "contact_id": "6",

            "type_id": "10",

            "content": "www.acompany.ru",

            "notes": "",

            "person": "",

            "type": "WWW"

          },

          {

            "id": "15",

            "slx_id": "",

            "contact_id": "6",

            "type_id": "5",

            "content": "acme@acompany.ru",

            "notes": "your notes here",

            "person": "",

            "type": "E-Mail"

          }

        ]

      }

    },

...

 ],

  "id": 1

}



Title

External_Udb.resetPassword

Description

 

Sample Request

{  

   "method":"External_Udb.resetPassword",

   "params":[ 

      "user_login"

   ],

   "id":1

}


Sample Response

{

            "result": "Check your E-Mail!",

            "id": "1"

}




Title

External_Udb.getLastVisitDate

Description

 

Sample Request

   "method":"External_Udb.getLastVisitDate",

   "params":[],

   "id":1

}

Sample Response

{

            "result": "2016-03-31 08:59:49",

            "id": "1"

}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.