26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Get user information

Get user information

GET  /api/v1/billing/user/manage

Method parameters

integer id, User ID (required if `login` is not provided)


string login, User login (required if `id` is not provided)

200  OK

Returns a user object

JSON
{
    "id": 1,
    "login": "test@mail.com",
    "name": null,
    "type": "type_value",
    "status": "active",
    "permissions": [
        {
            "name": "permission_name"
        }
    ],
    "created_at": "2023-05-02T10:18:50.000000Z",
    "updated_at": "2023-05-02T10:18:50.000000Z",
    "deleted_at": null,
    "can_update_password": true,
    "billing_properties": [
        {
            "type": "phone",
            "value": "+80283289362"
        }
    ],
    "billing_info": {
        "billing_id": "123123123",
        "billing_extra": []
    },
    "analytic_license": {
        "analytic_l1": 100,
        "analytic_l2": null,
        "analytic_l3": null
    },
    "session_limit": {
        "intercom": 5,
        "cctv": 10
    }
}

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/user/manage' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "id": "integer",
    "login": "string"
}'
PHP
PHP
$data = array (
  'id' => 'integer',
  'login' => 'string',
);
$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/user/manage', false, $context);