Management (1.0.0)

Endpoints associated with creating and managing user accounts.

View Account Details

Get account information

Get account details

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

get/v3/account
Request samples
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
              ->setUsername('USERNAME')
              ->setPassword('API_KEY');

$apiInstance = new ClickSend\Api\AccountApi(new GuzzleHttp\Client(),$config);

try {
    $result = $apiInstance->accountGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountGet: ', $e->getMessage(), PHP_EOL;
}
?>  
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here's your account.",
  • "data": {
    }
}

View Account Usage

Get account usage

Get account usage statistics grouped by subaccount.

Properties

Name Type Required Restrictions Description
year string true none Your account usage year. Example: 2019
month string true none Your account usage month. Example: 4

Refer to Status Codes for definitions of HTTP status code responses.

This endpoint requires authentication, more info...
Request
path Parameters
year
required
string
month
required
string
header Parameters
Content-Type
string
Example: application/json
Responses
200

Successful response

get/v3/account/usage/{year}/{month}/subaccount
Request samples
curl --include \
    --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \

'https://rest.clicksend.com/v3/account/usage/{year}/{month}/subaccount'      
Response samples
application/json
{
  • "http_code": 200,
  • "response_code": "SUCCESS",
  • "response_msg": "Here is your usage for this month.",
  • "data": {
    }
}
Copyright © ClickSend 2024. All right reserved.