Breadcrumbs

Deletе a user

The method and parameters

DELETE  /api/v1/billing/user/manage

JSON
{
    "login": "test@mail.com"
}

string login – a user login.

204  No Content

A successful response

422  Unprocessable Entity

Returns a JSON object with an error. For details, see General information > Validation.

JSON
{
    "message": "No error message here",
    "errors": {
        "any_key": [
            "Error details"
        ]
    }
}

400  Bad Request

Error deleting user. Details will be provided in the response (similar to a 422 error response).

cURL
Bash
curl -k --request DELETE \
	--url 'https://your-domain/api/v1/billing/user/manage' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "login": "string"
}'
PHP
PHP
$data = array (
  'login' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'DELETE',
		'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);