Request parameters (JSON):

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • account_id - (conditional) - Account ID
  • account_name - (conditional) - Account Code
  • account_code - (conditional) - Account Code
  • skip_lookup_account - (optional; default true) - is used only when account_id is provided; skips extra call to DB for Account verification
    • contact - Contact information option
      • contact_type - (optional; default main_contact) - Contact Type (i.e. main_contact, tech_spec, manager)
      • contact_name - (mandatory) - Contact Name
      • contact_mobile_num - (mandatory) - Mobile phone number
      • contact_email - e-mail
      • contact_desc - Contact Description

Combination contact_mobile_num and contact_name should be unique, otherwise system throws an error.



{
    "tenant": "zegoal",
    "account_id": 1,
    "contact": 
    {
    	"contact_name":"Unique Name",
    "contact_type":"main_contact",
     "contact_mobile_num": 2
   	}
}

CODE



{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-11-14 16:29:04",
   "AddContact":    {
      "response":       {
         "tenant": "zegoal",
         "skip_lookup_account": false,
         "flow_type": "AddContact",
         "contact":          {
            "contact_type": "main_contact",
            "contact_name": "Unique Name",
            "contact_mobile_num": 2,
            "contact_email": "",
            "contact_desc": ""
         },
         "account_id": 1
      },
      "request":       {
         "tenant": "zegoal",
         "contact":          {
            "contact_type": "main_contact",
            "contact_name": "Unique Name",
            "contact_mobile_num": 2
         },
         "account_id": 1
      },
      "TZ": "Europe/Minsk"
   }
}
CODE