Accounting API
Retrieve comprehensive accounting metrics including user statistics and purchase data
Accounting API
Access comprehensive accounting metrics and analytics. Track user registrations, purchase counts, and revenue data across daily, monthly, and yearly timeframes.
User Metrics
Track registrations over time.
Revenue Data
Monitor purchase activity.
Growth Analytics
Analyze business trends.
Endpoint Overview
/graphqlRetrieve various accounting metrics including total users, registration trends, and purchase statistics across different time periods.
GraphQL Query
query accounting {
accounting {
totalUsers
joinedByDay
joinedByMonth
joinedByYear
monthPurchaseCount
monthPurchase
dayPurchaseCount
dayPurchase
monthRenewPurchaseCount
monthRenewPurchase
dayRenewPurchaseCount
dayRenewPurchase
}
}HTTP Request:
curl -X POST https://api.orbnet.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
-d '{
"query": "query accounting { accounting { totalUsers joinedByDay joinedByMonth monthPurchaseCount monthPurchase dayPurchaseCount dayPurchase } }"
}'Response
{
"data": {
"accounting": {
"totalUsers": 15420,
"joinedByDay": 45,
"joinedByMonth": 892,
"joinedByYear": 8543,
"monthPurchaseCount": 312,
"monthPurchase": 28450.00,
"dayPurchaseCount": 18,
"dayPurchase": 1620.00,
"monthRenewPurchaseCount": 189,
"monthRenewPurchase": 17010.00,
"dayRenewPurchaseCount": 12,
"dayRenewPurchase": 1080.00
}
}
}{
"errors": [
{
"message": "Authentication required to access accounting data",
"path": ["accounting"],
"extensions": {
"code": "UNAUTHORIZED"
}
}
],
"data": null
}Available Metrics
User Statistics
Total users and registration trends.
Daily Activity
Today's signups and purchases.
Monthly Revenue
Monthly purchase and renewal data.
Renewal Tracking
Monitor subscription renewals.
Use Cases
Dashboard
Power admin dashboard widgets.
Reporting
Generate business reports.
Analytics
Track business performance.
Forecasting
Predict future trends.
Related Endpoints
Admin Access Required
This endpoint requires admin privileges. Accounting data provides sensitive business metrics and is restricted to authorized personnel.
Need Detailed Invoice Data?
Access individual invoice records for detailed financial analysis.