26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Check edge device availability

POST  /api/v1/billing/devices/check

If the device is available for activation, the response is empty and contains no error.

Either mac or serial_number

JSON
{
    "type": "mediaagent",
    "mac": "fake_mac_5",
    "serial_number": "sn"
}

Method parameters

string type  required , Device type. Possible values: `mediabridge` – Bridge, `mediaagent` – Camera (Agent)


string mac, Device MAC address


string serial_number, Device serial number

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 POST \
	--url 'https://your-domain/api/v1/billing/devices/check' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "type": "string",
    "mac": "string",
    "serial_number": "string"
}'
PHP
PHP
$data = array (
  'type' => 'string',
  'mac' => 'string',
  'serial_number' => 'string',
);
$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/devices/check', false, $context);