Skip to content

prepayment: add available_credit to PrepaymentStatus - #1228

Merged
DO-rrao merged 3 commits into
digitalocean:mainfrom
ldalbert:prepayment-available-credit
Nov 17, 2026
Merged

DO-rrao merged 3 commits into
digitalocean:mainfrom
ldalbert:prepayment-available-credit

Conversation

@ldalbert

Copy link
Copy Markdown
Contributor

The prepayment status endpoints (GET /v2/customers/my/prepayment_status and GET /v2/customers/my/prepayment_config) now return available_credit: the credit an account can spend on Inference & Agents (inference, trial, and available subscription credit).

This adds AvailableCredit to PrepaymentStatus so callers such as doctl can show it. The field is omitted when the token lacks billing read access, so it is tagged omitempty.

Co-authored-by: Cursor <cursoragent@cursor.com>
@DO-rrao
DO-rrao merged commit 9111493 into digitalocean:main Nov 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants