how to get billing data for account

Gary Wallace December 8, 2015

Hi, I am writing a billing aggregator for a client company.  I need to be able to get billing information, like the data on /admin/billing/overview.  I notice that there are 2 REST calls on this page that give me exactly what I need, but I can't find documentation on them anywhere.  Specifically, how is the number calculated in the query string:

 

https://<company>.atlassian.net/admin/rest/billing/1/proxy?_=1449498554595
https://<company>.atlassian.net/admin/rest/billing/1/proxy?_=1449498554596

Thanks!

1 answer

0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2015

Well, the _=<number> part of the url is just the standard jQuery "cache buster". So it is unimportant.

As for the name suggests, that url is a proxy through one service to another. It is NOT a public api and you should not expect it to be stable and work for you.

However, if you were to inspect the headers and structure of the HTTP request you could work out how to query that automatically.

Please keep in mind that these url's are completely unsupported for public consumption. The only supported pages, with respect to biling, are the pages that you find at /admin/billing/overview

You may be able to raise an issue at jira.atlassian.com in the CLOUD project to have a public billing rest api.

Suggest an answer

Log in or Sign up to answer