Account Usage
GET
/account/usage/{year}/{month}/{type}
Account
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://rest.clicksend.com/v3/account/usage/2016/4/subaccount'
Response Response Example
{
"data": {
"email": [
{
"subaccount_id": 1039,
"total_count": 3992,
"total_price": "9.0020",
"username": "user1"
},
{
"subaccount_id": 1047,
"total_count": 998,
"total_price": "0.0000",
"username": "user5"
}
],
"email_total": {
"count": 4990,
"price": "9.0020"
},
"fax": [
{
"subaccount_id": 1039,
"total_count": "3.00",
"total_price": "0.6943",
"username": "user1"
},
{
"subaccount_id": 1047,
"total_count": "1.00",
"total_price": "0.2314",
"username": "user5"
}
],
"fax_total": {
"count": 4,
"price": "0.9257"
},
"post": [
{
"subaccount_id": 1039,
"total_count": "10",
"total_price": "8.5624",
"username": "user1"
},
{
"subaccount_id": 1047,
"total_count": "3",
"total_price": "2.5586",
"username": "user5"
}
],
"post_total": {
"count": 13,
"price": "11.1210"
},
"sms": [
{
"subaccount_id": 1039,
"total_count": "29.00",
"total_price": "2.1337",
"username": "gerald"
},
{
"subaccount_id": 1047,
"total_count": "4.00",
"total_price": "0.3080",
"username": "user5"
}
],
"sms_total": {
"count": 33,
"price": "2.4417"
},
"voice": [
{
"subaccount_id": 1039,
"total_count": "6.00",
"total_price": "0.1980",
"username": "user1"
},
{
"subaccount_id": 1047,
"total_count": "1.00",
"total_price": "0.0330",
"username": "user5"
}
],
"voice_total": {
"count": 7,
"price": "0.2310"
}
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "Here is your usage for this month."
}
Request
Path Params
year
numberÂ
required
Example:
2016
month
numberÂ
required
Example:
4
type
stringÂ
required
Example:
subaccount