# Application Billing: Credits Balance Card

Prepaid credits wallet showing current balance, a ruled grants and spends ledger, and the application policy.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/credits-balance-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Billing](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/credits-balance-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-billing-credits-balance-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/application-pro/billing/credits-balance-card`

## About this block

Credits Balance Card is the prepaid wallet panel, current
balance ($142.50) in the header alongside the Prepaid badge,
and a five-row ruled ledger below. The ledger mixes grants
and spends: annual plan discount grant (+$100.00), Jun
invoice payment (-$48.50), referral reward (+$25.00), May
invoice payment (-$48.50), and the welcome grant (+$114.50).
Each row shows the description, date, and ID (CRD-2026-0041,
SPD-2026-0182). The policy footer explains all three rules:
credits apply before the card, oldest grant first; credits
never expire; partial application bills the remainder to the
card.

The ledger is a const array typed as const with a kind field
steering foreground weight. The three policy lines are the
difference between a confused balance and a trusted wallet.

## When to use

Reach for this block on the billing overview page next to
the current plan card, wired to your credits ledger endpoint.
Show it only when the account has a nonzero balance or a
transaction history.

A natural flow around it on an Application Pro page:

**Before**

- [Settings shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

**After**

- [Proration preview card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- [Tax and invoice settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

## What you can display

One strong use is the prepaid credits wallet. Other credit
balance surfaces:

- **Promotional credits.** Grants with individual expiry
  dates listed per row instead of a blanket no-expiry policy.
- **Usage credits.** Compute or API credits denominated in
  units rather than dollars, with a burn rate estimate.
- **Referral ledger.** Credits earned per referral with the
  referee name and status per row.

> Tip: oldest grant first is a policy worth stating; users
> assume LIFO until you tell them otherwise.

## More in Application Billing

- [Add-ons Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/addons-panel)
- [Billing Contacts Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-contacts-card)
- [Billing Cycle Switch](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-cycle-switch)
- [Cancel Flow Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cancel-flow-blueprint)
- [Cost Allocation Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cost-allocation-panel)
- [Coupon Redemption Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/coupon-redemption-card)
- [Current Plan Usage](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/current-plan-usage)
- [Dunning Banner](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/dunning-banner)
- [Invoice Detail Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-detail-page)
- [Invoice History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-history-table)
- [Pause Subscription Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/pause-subscription-panel)
- [Payment History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-history-table)
- [Payment Method Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-method-panel)
- [Plan Change History](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-change-history)
- [Plan Comparison Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-comparison-table)
- [Proration Preview Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/proration-preview-card)
- [Receipt Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/receipt-card)
- [Refund Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/refund-status-card)
- [Seat Management Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/seat-management-panel)
- [Spend Trend Chart](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spend-trend-chart)
- [Spending Limit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spending-limit-card)
- [Tax and Invoice Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/tax-and-invoice-settings)
- [Trial Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/trial-status-card)
- [Upgrade Comparison Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/upgrade-comparison-card)
- [Usage Alerts Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-alerts-panel)
- [Usage Breakdown Bill](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-breakdown-bill)
