Revenue analytics
curl --request GET \
--url https://api.zeroclick.io/v1/analytics/revenue \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zeroclick.io/v1/analytics/revenue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zeroclick.io/v1/analytics/revenue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"revenue": {
"days": 123,
"revenueUsd": "<string>",
"previousRevenueUsd": "<string>",
"averageTransactionUsd": "<string>",
"lifetimeRevenueUsd": "<string>",
"lifetimeTransactions": 123,
"revenueByDay": [
{
"date": "<string>",
"revenueUsd": "<string>",
"transactions": 123
}
],
"revenueBySeller": [
{
"seller": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"transactions": 123,
"revenueUsd": "<string>"
}
],
"revenueByMeter": [
{
"service": {
"id": "<string>",
"name": "<string>"
},
"meterKey": "<string>",
"transactions": 123,
"revenueUsd": "<string>"
}
]
}
}{
"error": "organization_required"
}{
"error": "organization_required"
}{
"error": "organization_required"
}{
"error": "organization_required"
}Analytics
Revenue analytics
Aggregates settled revenue, average transaction value, and lifetime totals for the authenticated organization.
GET
/
v1
/
analytics
/
revenue
Revenue analytics
curl --request GET \
--url https://api.zeroclick.io/v1/analytics/revenue \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zeroclick.io/v1/analytics/revenue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zeroclick.io/v1/analytics/revenue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"revenue": {
"days": 123,
"revenueUsd": "<string>",
"previousRevenueUsd": "<string>",
"averageTransactionUsd": "<string>",
"lifetimeRevenueUsd": "<string>",
"lifetimeTransactions": 123,
"revenueByDay": [
{
"date": "<string>",
"revenueUsd": "<string>",
"transactions": 123
}
],
"revenueBySeller": [
{
"seller": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"transactions": 123,
"revenueUsd": "<string>"
}
],
"revenueByMeter": [
{
"service": {
"id": "<string>",
"name": "<string>"
},
"meterKey": "<string>",
"transactions": 123,
"revenueUsd": "<string>"
}
]
}
}{
"error": "organization_required"
}{
"error": "organization_required"
}{
"error": "organization_required"
}{
"error": "organization_required"
}Authorizations
API key created in the ZeroClick dashboard under Settings → API keys. Keys start with zc_. Send them as Authorization: Bearer zc_....
Query Parameters
Required range:
1 <= x <= 365Minimum string length:
1Response
Default Response
Show child attributes
Show child attributes