Everything about account statistics
Get voice statistics
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/statistics/voice'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are your statistics.",
- "data": {
- "total": {
- "outbound": {
- "count": 1,
- "price": 0
}, - "bounced": {
- "count": 0
}
}, - "stats": [
- {
- "date": 1441065600,
- "outbound": {
- "count": 0,
- "price": 0
}, - "bounced": {
- "count": 0
}
}
], - "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}
}
}
Get sms statistics
Refer to Status Codes for definitions of HTTP status code responses.
Successful response
curl --include \ --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA==" \ 'https://rest.clicksend.com/v3/statistics/sms'
{- "http_code": 200,
- "response_code": "SUCCESS",
- "response_msg": "Here are your data.",
- "data": {
- "total": {
- "outbound": {
- "count": 1,
- "price": 5.81
}, - "inbound": {
- "count": 0
}, - "bounced": {
- "count": 0
}
}, - "stat": [
- {
- "date": 1436918400,
- "outbound": {
- "count": 83,
- "price": 5.81
}, - "inbound": {
- "count": 0
}, - "bounced": {
- "count": 0
}
}
], - "_currency": {
- "currency_name_short": "AUD",
- "currency_prefix_d": "$",
- "currency_prefix_c": "c",
- "currency_name_long": "Australian Dollars"
}
}
}