26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Get instances with complaints

List of instances with complaints

GET  /api/v1/billing/issueables

Returns a paginated list of instances (cameras, analytics, access points) with active complaints.

Method parameters

string type  required , Instance type. Possible values:

  • camera_issues— cameras with complaints

  • analytic_issues— cameras with analytics complaints

  • access_point_issues— access points with complaints


string search, Search string: instance name or location (group). Supported for all types


string sort, Sort field. Possible values: `name`, `count_issues`, `location` (all types), `uuid` (only for `access_point_issues`), `id` (only for cameras)


string dir, Sort direction: `asc` or `desc` (default: `asc`)


int per_page, Number of items per page. Available values: 25 (default), 50, 100

200  OK

Returns a paginated list of instances with complaints

JSON
{
    "data": [
        {
            "issueable_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "name": "Main entrance",
            "issueable_type": "access_point_issues",
            "status": null,
            "count_issues": 3,
            "location": "Office, first floor",
            "location_id": 42
        }
    ],
    "links": {
        "first": "http://localhost/api/v1/billing/issueables?type=access_point_issues&page=1",
        "last": "http://localhost/api/v1/billing/issueables?type=access_point_issues&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "http://localhost/api/v1/billing/issueables?type=access_point_issues&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "http://localhost/api/v1/billing/issueables",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

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 GET \
	--url 'https://your-domain/api/v1/billing/issueables' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "type": "string",
    "search": "string",
    "sort": "string",
    "dir": "string",
    "per_page": 0
}'
PHP
PHP
$data = array (
  'type' => 'string',
  'search' => 'string',
  'sort' => 'string',
  'dir' => 'string',
  'per_page' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/issueables', false, $context);