Breadcrumbs

Static data

Billing common settings

Request to get billing static data. For now, it returns only the list of permissions available to the user.

GET  /api/billing/v1/static

200  OK

Returns the list of information available to the user

JSON
{
    "permissions": [
        {
            "type": null,
            "external_key": null,
            "group": "User settings",
            "permissions": [
                {
                    "id": 1,
                    "name": "users-index",
                    "display_name": "Users. View"
                },
                {
                    "id": 2,
                    "name": "users-show",
                    "display_name": "Users. View card"
                }
            ]
        },
        {
            "type": "analytic",
            "external_key": "analytic_l1",
            "group": "Analytics L1",
            "permissions": [
                {
                    "id": 21,
                    "name": "analytic-l1.case-1",
                    "display_name": "Analytics L1. Case 1"
                }
            ]
        }
    ]
}
cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/billing/v1/static' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$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/billing/v1/static', false, $context);