# Billing Account Detail block

> Customer Billing Account Detail with Tabbed Invoices, Subscription, and Activity Rail

Single-account billing detail: identity header, tabbed invoice history, subscription, and payment methods beside a scoped activity timeline. shadcn Card, Tabs, Table, Button; ReUI Badge. Account detail, billing management, subscription page.

- Type: Pro block
- Category: [Billing](https://web.dev.reui.io/blocks/solutions/billing.md)
- Page: https://web.dev.reui.io/blocks/solutions/billing/solution-billing-4
- MCP: `get_block("solution-billing-4")`
- Built with: Badge, Button, Card, Dropdown Menu, Empty, Field, Icon Stack, Scroll Area, Spinner, Table, Tabs, Timeline
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

One past due account with a switchable default payment method, invoice row menus to view, download or remind, and a sticky activity rail

## Agent notes

- Replace the single hardcoded account: `CUSTOMER`, `SUBSCRIPTION`, `PAYMENT_METHODS`, `INVOICE_HISTORY` and `ACCOUNT_ACTIVITY` in data.tsx
- `handleChangePlan` and `handleNewInvoice` only toast, and `handleChangePlan` hardcodes the Scale plan price in its text
- `handleUpdateDefault` only sets `defaultMethodId`, while `handleEditPaymentMethod` and `handleDeletePaymentMethod` just toast

## When not to use

- Working an invoice ledger across all customers, not one account: use [Invoice Ledger](https://web.dev.reui.io/blocks/solutions/billing/solution-billing-1.md) (`get_block("solution-billing-1")`)
- A customer facing billing settings page for the signed in user: use [Billing Settings](https://web.dev.reui.io/blocks/application/profile/profile-8.md) (`get_block("profile-8")`)

## Third-party libraries

- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/solution-billing-4
```

## About Billing blocks

### When to use

- A back office for billing operators: the invoice ledger, subscriptions, a dunning queue and metered usage
- Plan and discount admin: editing the plan catalog and coupon rules, or moving a subscription to a new tier
- One customer's billing account seen by staff, or an invoice built line by line and then sent

### When not to use

- A public page where visitors compare plan tiers and pick one before signing up: use the [Pricing blocks](https://web.dev.reui.io/blocks/marketing/pricing.md)
- A signed in customer's own settings page showing their plan, usage and invoices: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)
- A stepped intake flow with no money in it, such as vendor onboarding or team invites: use the [Wizard blocks](https://web.dev.reui.io/blocks/application/wizard.md)

### Agent notes

- Each block sets a `min-h-svh` wrapper with `bg-background`, padding and a max width in page.tsx or its root component; drop it inside an app shell
- No block calls an API: sends, retries, saves and exports update `useState` or fire a sonner `toast`; post to your billing backend from those handlers

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
