# Wallet, top-ups, and billing

Source: https://cch-plus.com/en/docs/guide/wallet-and-billing

> Check your personal balance, postpaid organization credit, and estimated days left in Wallet, read active packages, deduction order, and spend forecast charts, top up online with QR codes, buy or renew packages, redeem codes in bulk, and reconcile payment and referral records.

Every member has an independent **Wallet** (since v1.0.3) inside each organization they belong to (**Wallet** in the sidebar, route `/app/wallet`). Top-ups, packages, redeem codes, and API call charges in your current organization apply only to that organization's wallet and do not carry over across organizations.

## Balance overview, today's spend, and forecast

Open **Wallet** to see your available funds and daily usage snapshot in the top card:

![Wallet overview: available balance, estimated days left, quick actions, today's spend, and active plans](https://cch-plus.com/en/docs/guide/wallet-billing-01-overview.webp)

- **Available balance and estimated days left**: Shows your cash balance along with **≈ N days left** (since v1.0.9), estimated from your active package allowances and the past 30 days of actual spending. In a [postpaid organization](https://cch-plus.com/en/docs/organizations/limits#billing-mode), it also displays the organization's remaining postpaid credit for the month.
- **Today's spend summary** (since v1.0.15): The right side of the card aggregates live 15-minute metrics for **Spend today**, **Calls today**, and **Tokens today** (split by calendar day in your preferred display time zone).
- **Quick actions**: Depending on enabled platform features, provides direct buttons for **Top up**, **Buy package**, **Redeem code**, and **Daily check-in**.
- **Spend forecast chart** (since v1.0.9): The middle forecast card plots historical daily spend over the last `7`, `14`, or `30` days as a stacked bar chart and automatically fits the best linear or quadratic trend line from 30-day data to project upcoming spend.

## Online top-up and QR payment (since v1.0.13)

Click **Top up** (or follow the direct `/app/wallet?action=recharge` link from a balance-exhausted alert email (since v1.0.16)) to launch the top-up dialog, with a three-step **Confirm order → Pay → Credited** progress bar below the title (since v1.0.16):

![Online top-up dialog: top-up tier selection, custom amount, and available payment channels](https://cch-plus.com/en/docs/guide/wallet-billing-02-topup-qr.webp)

1. Pick a configured **Top-up tier** (active flash campaigns display promotional tiers or discounts inline) or enter a custom amount (available payment methods below stay visible even before a custom amount is entered).
2. Choose an available **Payment method** (such as Stripe, Alipay, WeChat Pay, or Epay; CCHP selects the right payment product for desktop or mobile browsers automatically).
3. Confirm payment:
   - For **in-page QR payments** (since v1.0.13), the dialog renders the QR code directly and polls the server automatically until your balance is credited.
   - When launching **Alipay / WeChat app checkout** (since v1.0.13) on mobile or inside WeChat, returning to Wallet triggers an automatic order check and displays the settlement status. All crediting is governed strictly by server-side confirmation.

> [!NOTE]
>
> **Balance exhausted (HTTP 402) alert email** (since v1.0.16): When your available wallet balance runs out and requests repeatedly return HTTP `402` for insufficient balance within the detection window (default 3 rejections within 15 minutes, with a 24-hour per-wallet cooldown, governed by `billing.balance_exhausted.*`), CCHP automatically sends a **Balance exhausted alert** email if outgoing mail and this email scenario are enabled—listing recent failed attempts and a direct `/app/wallet?action=recharge` top-up link.

## Redeem codes

Click **Redeem code** to open the redemption dialog and paste one or more balance or package codes:

![Redeem code dialog: paste codes, live preview, and per-code results](https://cch-plus.com/en/docs/guide/wallet-billing-03-redeem.webp)

- Supports one-click paste with automatic detection and preview of code type (balance code or package code) before submission. After redemption, results show per-code success or failure reasons (such as already used, expired, or redemption cap reached) and refresh your balance and plans immediately.

## Active plans, deduction order, and renewal

**Your Plans** lists all of your **Active** package cards (with expired or depleted plans folded cleanly below). Click any plan card to open the **Package Details** drawer on the right:

![Package Details drawer: remaining allowance, validity period, scope restrictions, and renewal](https://cch-plus.com/en/docs/guide/wallet-billing-04-plan-usage.webp)

- **Inspect scope and usage progress**: Check remaining credit, periodic reset progress, expiry date, and any restrictions limiting the package to specific models, provider groups, or clients (since v1.0.15).
- **Deduction priority and fallback**: On each API call, the gateway deducts first from eligible active packages that expire soonest or rank highest by rule. If a request falls outside package scope or the allowance runs out, billing falls back automatically to your personal wallet balance (or organization credit in postpaid organizations).
- **Purchase and renewal**: Buy new packages or renew existing ones with wallet balance (when enabled) or direct online payment. Team-specific or flash-campaign effective pricing is previewed before checkout. If an online payment succeeds but a concurrent purchase rule prevents issuing the package, the paid amount is credited automatically to your wallet balance so no funds are lost.

## Referral earnings, top-up history, and reconciliation

The lower section displays the **Referral** card (rendered as a holographic pass card with your referral code, invited count, and earned total once a suffix is generated (since v1.0.16)) alongside **Top-up History** and **Referral Earnings**:

- **Top-up and order history**: Logs every online top-up (with payment brand icons), package purchase or renewal order, daily check-in reward, redeemed code, and debit entry in a timeline view (since v1.0.16) (the legacy `/app/orders` route redirects here).
- **Referral Earnings and zero-rebate status details** (since v1.0.16): Each invited user expands to show three-step **Joined → First qualifying payment → Reward credited** progress (with **Est. release** while frozen), clearly distinguishing **Credited**, **Partially credited**, **Frozen · pending**, **Pending evaluation**, **\<sources> · ineligible** / **Existing credits only** (such as **Check-in**, **Redeem code**, **Admin grant**, **Balance purchase**, or **Existing-credit usage** only), **Ineligible**, **Cancelled**, **Unbound**, and **No paid orders yet**. See [Referral rewards](https://cch-plus.com/en/docs/engagement/referral#rewards).
- **Reconcile individual calls** (since v1.0.15): To inspect how much a single API request deducted from wallet balance versus packages, plus the settlement list price and combined multiplier used, open [Request logs, tracing, and leaderboards](https://cch-plus.com/en/docs/guide/request-logs#billing). Admins looking to export and reconcile funding movements across all members can use [Audit logs and finance events](https://cch-plus.com/en/docs/organizations/audit-finance#finance-events).

## Frequently asked questions

### I topped up my wallet—why does my balance show \$0 after I switch organizations?

Wallets are completely isolated per organization. Balance topped up and packages bought in Organization A can only be used in Organization A. Check the organization switcher on the left side of the top bar to confirm you are in the right organization.

### My QR payment succeeded, but I closed the page before seeing my balance update. What happens now?

Crediting is handled entirely by asynchronous server-side payment callbacks and scheduled reconciliation jobs, not by keeping the browser open. Reopen **Wallet** and refresh, or check the order status under **Top-up History**. If it still hasn't settled after a while, share the order ID with an organization or platform admin to inspect in **Finance Events**.

## Related pages

- [Provider groups and your final price](https://cch-plus.com/en/docs/guide/pricing)
- [Request logs, tracing, and leaderboards](https://cch-plus.com/en/docs/guide/request-logs)
- [Set up packages](https://cch-plus.com/en/docs/operations/plans)
- [Audit logs and finance events](https://cch-plus.com/en/docs/organizations/audit-finance)
