Request parameters (JSON):

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • skip_lookup_account - (optional; default true) - is used only when account_id is provided; skips extra call to DB for Account verification
  • skip_lookup_contact - (optional; default false) - check if provided contract exists on provided account
  • account_id - (conditional) - Id of account, which contract will be updated
  • account_name - (conditional) - Name of account, which contract will be updated
  • account_code - (conditional) - Code of account, which contract will be updated
    • contact - Contact information option
      • contact_type - (conditional) - Contact Type (i.e. main_contact, tech_spec, manager)
      • contact_name - (conditional) - Contact Name
      • contact_mobile_num - (conditional) - Mobile phone number
      • contact_email - (conditional) - e-mail
      • contact_desc - (conditional) - Contact Description
      • contact_id (mandatory) - Contact Unique Id

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

Response details (JSON):

  • UpdateContact
    • request
      • "input" (request parameters) as is; only those parameters that were sent in input
    • response
      • <all request parameters> (filled with default values if were missing in input)
      • TZ - time zone of processing
      • contact - contact info
        • contact_type - Contact Type
        • contact_name - Contact Name
        • contact_mobile_num - Mobile phone number
        • contact_email - e-mail
        • contact_desc - Contact Description
        • contact_id - Contact Unique Id

Examples



{
    "tenant": "zegoal",
    "account_id": 264,
    "contact": [         {
            "contact_type": "main_contact",
            "contact_name": "11111",
            "contact_mobile_num": "11111",
            "contact_id": 291,
            "contact_email": "11111",
            "contact_desc": "11111"
         }]
}
CODE



{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-11-14 16:41:28",
   "UpdateContact":    {
      "response":       {
         "tenant": "zegoal",
         "skip_lookup_account": true,
         "flow_type": "UpdateContact",
         "contact": [         {
            "contact_type": "main_contact",
            "contact_name": "11111",
            "contact_mobile_num": "11111",
            "contact_id": 291,
            "contact_email": "11111",
            "contact_desc": "11111"
         }],
         "account_id": 264,
         "TZ": "Europe/Minsk"
      },
      "request":       {
         "tenant": "zegoal",
         "contact": [         {
            "contact_type": "main_contact",
            "contact_name": "11111",
            "contact_mobile_num": "11111",
            "contact_id": 291,
            "contact_email": "11111",
            "contact_desc": "11111"
         }],
         "account_id": 264
      }
   }
}
CODE