# Billing API and CLI Reference | DigitalOcean Documentation > Use the DigitalOcean API and official CLI client, doctl, to programmatically retrieve your balance, invoices, and billing history. - [Billing API Reference](https://docs.digitalocean.com/platform/billing/reference/api/index.html.md):