Get Payment Statistics
Payments
Get Payment Statistics
Get aggregated payment statistics across all developer’s projects
GET
Get Payment Statistics
Retrieve aggregated payment statistics across all projects owned by the authenticated developer. Includes subscription counts, payment totals, and revenue metrics.Documentation Index
Fetch the complete documentation index at: https://devkit4ai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires developer authentication via OAuth2 Bearer Token.
Query Parameters
Include test mode data in statistics. Set to
false for live mode only.Response
Total number of projects owned by the developer
Number of projects with Stripe configuration
Number of projects with test mode credentials
Number of projects with live mode credentials
Total number of subscriptions across all projects
Number of currently active subscriptions
Total number of payment transactions
Number of successful payments
Total revenue in cents
Currency for revenue (lowercase ISO code)
Example Request
Example Response
Formatting Revenue
To display revenue as currency:Dashboard Metrics
Use these statistics to build a developer dashboard: (((REPLACE_THIS_WITH_IMAGE: cloud-admin-payment-stats-dashboard.png: Developer dashboard showing payment statistics with subscription counts, revenue chart, and project configuration status)))Key Metrics Explained
| Metric | Description |
|---|---|
active_subscriptions | Subscriptions with status active or trialing |
successful_payments | Payments with status succeeded |
total_revenue_cents | Sum of all successful payment amounts |
Related Pages
List Subscriptions
View all subscriptions
List Transactions
View payment transactions
Console Statistics
Cloud Admin statistics view
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
Include test mode data
Response
Successful Response
Aggregated payment statistics.

