To retrieve a list of all billing history entries, send a GET request to /v2/customers/my/billing_history
.
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
balance = client.billing_history.list()
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.