26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Delete intercom (v1)

With the release of request version v2, version v1 is being moved to legacy.
For new integrations, use the current v2.
Version v1 remains available to support existing integrations.

DELETE  /api/v1/billing/intercoms

Deleting an intercom performs a soft delete, sets its status to "deleted", and removes its associated intercom apartments (intercom_flats) and deletes the linked camera without retaining its archive, if one exists.

Deletion also removes associations with gates: an entrance panel is removed from all gates, and all panels are unlinked from a gate without changing their own settings.

Delete by ID:

JSON
{
    "id": "123",
    "log_extra": {
        "some": "information"
    }
}

Delete by MAC address:

JSON
{
    "mac": "11:11:11:11:11:11",
    "log_extra": {
        "some": "information"
    }
}

Method parameters

int id, Intercom ID


string mac, Intercom MAC address


string|array log_extra, Additional information received from the external system

204  No Content

Successful response

422  Unprocessable Entity

Returns a JSON error object.

For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v1/billing/intercoms' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "id": 0,
    "mac": "string",
    "log_extra": "string|array"
}'
PHP
PHP
$data = array (
  'id' => 0,
  'mac' => 'string',
  'log_extra' => 'string|array',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'DELETE',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/intercoms', false, $context);