how to get billing data for account

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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

121 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you