Skip to main content
Skip table of contents

Manage user's intercoms

The method and parameters

The method is used to manage user's intercoms. It synchronizes intercoms with the user's associated apartments based on their login.

JSON
{
    "login": "test@mail.com",
    "sync": [
        {
            "intercom_external_id": "qweasdzxc",
            "flat": 15
        },
        {
            "intercom_id": 1,
            "flat": 10
        }
    ]
}

POST /api/v1/billing/user/manage/intercoms

The parameters

string login – a user login


array sync – an array linking intercoms and apartments for the user.

object array

integer sync. REQUIRED, .intercom_id – the list of intercom identifiers from the VMS database.


integer sync. REQUIRED, .intercom_id – the list of intercom identifiers from the VMS database.


integer flat – the apartment number for the intercom

204 No Content

A successful response

422 Unprocessable Entity

Returns a JSON object with an error. For details, see the Validation page.

JSON
{
    "message": "No information message here",
    "errors": {
        "any_key": [
            "The error description"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/user/manage/intercoms' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string",
    "sync": {
        "": "integer"
    },
    "sync.": "void",
    "flat": "integer"
}'
PHP
PHP
$data = array (
  'login' => 'string',
  'sync' => 
  array (
    '' => 'integer',
  ),
  'sync.' => 'void',
  'flat' => 'integer',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/user/manage/intercoms', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.