Request parameters

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • account_code - (conditional) - Account External Code, e.g. Account ID in external system
  • account_name - (conditional) - Account Name
  • account_id - (conditional) - Account ID
  • contacts
    • contact_id

One of conditional parameters: account_id, or account_name, or account_code - is mandatory to be provided.


Error codes:

  • validation failed - some mandatory parameter is missed or Value is not supported by respective dictionary. See more details in the error's details
  • contacts not found - wrong ID of requested contacts or they are not associated with your account
  • no contacts in the request - your collection of contact_ids is empty. You should insert at least one id
  • to many contacts in the request - some of the given contacts are not associated with your account or there are duplicates of in the request
  • not all contacts found - wrong ID of requested contacts or they are not associated with your account


Examples

{
"tenant": "zegoal",
"account_id": "3",
"contacts": [
      {
        "contact_id": 6
      },
      {
        "contact_id": 9
      }
    ]
}
CODE


{
"processing_result": {
  "text": "success",
  "status": "ok",
  "code": 0
},
"processing_date": "2019-11-16 15:17:23",
"DeleteAccountContacts": {
  "response": {
    "deleted_contacts": [
      {
        "contact_type": "tech_spec",
        "contact_name": "contact1",
        "contact_mobile_num": "67_1",
        "contact_id": 9,
        "contact_email": "email@com1",
        "contact_desc": "desc"
      },
      {
        "contact_type": "tech_spec",
        "contact_name": "Name6",
        "contact_mobile_num": "067_1",
        "contact_id": 6,
        "contact_email": "email@com",
        "contact_desc": "desc"
      }
    ]
  },
  "request": {
    "tenant": "zegoal",
    "contacts": [
      {
        "contact_id": 6
      },
      {
        "contact_id": 9
      }
    ],
    "account_id": "3"
  },
  "TZ": "Europe/Kiev"
}
}
}
CODE