Our documentation has moved!

You are currently viewing a legacy version of our help articles.
For the most up-to-date version, please use the new Chargify Help & Support Site.
Follow

API request to get sales/reports stats

There is an API call you can use that will return basic site stats.
It's used by our iPhone app and folks like Geckoboard to enable easy site statistics.
-- Kori (@djbyter)


Site Statistics
URL: https://<subdomain>.chargify.com/stats.json
Method: GET
Response: The site's statistics

Json Example:

When I send a GET request to https://<subdomain>.chargify.com/stats.json
The response should be "200 OK"
And the response should be in the json:
"""
{
"seller_name": "your value",
"site_name": "your value",
"stats": {
"total_subscriptions": "some value",
"subscriptions_today": "some value",
"total_revenue": "some string value like $1234.34, not an int",
"revenue_today": "some string value",
"revenue_this_month": "some string value",
"revenue_this_year": "some string value"
}
"
"""

I'm pulling that from my own Chargify.NET wrapper, so I'm pretty sure that's how it works.

-- Kori (@djbyter)

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk