Question

I want to get billing information

Posted September 10, 2015 4.4k views
DigitalOceanAPI

Can we get billing information using APIs or any other way.
is it possible

2 comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
6 answers

+1 for extending the API and doctl to include basic credit and usage information, e.g. something like:

{
“account”: {
“dropletlimit”: 25,
“email”: “sammy@digitalocean.com”,
“uuid”: “b6fr89dbf6d9156cace5f3c78dc9851d957381ef”,
“email
verified”: true,
“currency”: “USD”,
“credit”: 32.30,
“usage”: 17.10
}
}

+2 for option to have more detailed information also …

You can view the billing related information here: https://cloud.digitalocean.com/settings/billing.

Using the API, you can only get basic account information such as the droplet limit and the email address:

{
  "account": {
    "droplet_limit": 25,
    "email": "sammy@digitalocean.com",
    "uuid": "b6fr89dbf6d9156cace5f3c78dc9851d957381ef",
    "email_verified": true
  }
}

+1 for pdf’s download via API,

If you have lots of teams it is very annoying process to log and save the PDF invoice files…

Submit an Answer