# 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.