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 votes

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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

418 views 7 5
Join discussion

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