Tutorial: Wallet Allocation & Top-Up
This tutorial walks you through viewing wallet balances, allocating credits to teams, topping up via PayPal, reviewing transaction history, and configuring low-balance alerts in the Keeptrusts management console.
Use this page when
- You need to view wallet balances at the organization, team, or user level.
- You want to allocate credits to a team or top up a depleted wallet via PayPal.
- You need to review transaction history (reserves, settlements, refunds, top-ups).
- You are configuring low-balance alerts to prevent requests from being held.
Primary audience
- Primary: Platform administrators and billing admins managing credit allocation and wallet top-ups
- Secondary: Team leads monitoring their team’s wallet balance; finance teams reconciling PayPal top-up transactions
Prerequisites
- A Keeptrusts account with Admin or Billing Admin role
- At least one team created in your organization
- PayPal payment settings configured by a platform administrator (for top-ups)
Why Wallets?
Wallets provide a credit-based spending control layer. When a gateway routes an LLM request, it reserves the estimated cost against the effective wallet scope (user, team, or organization). After the provider responds, the reservation settles to the actual cost. If no wallet has sufficient balance, the request is held until credits are available. This ensures that AI spend never exceeds your allocated budget.
Step 1: Navigate to the Wallets Page
- Log in to the Keeptrusts console.
- Open Wallets from the left navigation sidebar.
The page displays wallet balances organized by scope.
| Column | Description |
|---|---|
| Scope | Organization, team, or user |
| Name | The entity name |
| Balance | Current available credits (USD) |
| Reserved | Credits reserved for in-flight requests |
| Total Allocated | Cumulative credits allocated to this wallet |
| Total Spent | Cumulative credits consumed |
| Status | Healthy, Low, or Depleted |
Step 2: View Wallet Balances
The wallet hierarchy follows your organizational structure:
- Organization wallet — The top-level pool from which all credits originate.
- Team wallets — Credits allocated to specific teams from the organization wallet.
- User wallets — Optional per-user limits allocated from the team wallet.
Click on any wallet row to see the detail view with balance history and transaction log.
The balance chart shows the wallet balance over time, with annotations for allocation events, top-ups, and high-spend periods.
Step 3: Allocate Credits to Teams
Distribute credits from the organization wallet to team wallets.
- Click Allocate Credits on the Wallets page.
- Fill in the allocation form:
| Field | Description |
|---|---|
| From | The source wallet (typically the organization wallet) |
| To | The target team wallet |
| Amount | Credits to allocate (USD) |
| Notes | Optional reason for the allocation (e.g., "Q2 budget") |
- Review the source wallet's remaining balance after the allocation.
- Click Confirm Allocation.
The allocation is immediate — the team wallet balance increases and the source wallet balance decreases by the same amount.
To allocate credits to multiple teams at once:
- Click Bulk Allocate.
- Enter amounts for each team in the allocation table.
- Verify that the total does not exceed the source wallet balance.
- Click Confirm.
Step 4: Top Up via PayPal
Add credits to the organization wallet through PayPal.
- Click Top Up on the organization wallet detail view.
- Enter the top-up amount in USD.
- Click Pay with PayPal.
- A PayPal checkout window opens. Log in and approve the payment.
- After approval, the console captures the payment and credits your organization wallet.
The top-up appears in the transaction history with a payment_capture type.
Step 5: Review Transaction History
Every wallet change is recorded in the transaction log.
- Open a wallet detail view.
- Select the Transactions tab.
- Review the transaction table:
| Column | Description |
|---|---|
| Timestamp | When the transaction occurred |
| Type | allocation, reserve, settle, refund, payment_capture, payment_refund |
| Amount | Credits added or deducted |
| Balance After | Wallet balance after the transaction |
| Reference | Linked entity (request ID, allocation ID, or PayPal order ID) |
| Actor | Who initiated the transaction |
- Use filters to narrow by transaction type, date range, or amount.
- Click on a transaction to see full details.
The reserve/settle pair is the most common pattern:
- Reserve — Credits held when the gateway receives a request (estimated cost).
- Settle — Reserve adjusted to the actual cost after the provider responds. The difference is returned to the wallet.
Step 6: Configure Low-Balance Alerts
Prevent service disruptions by setting up alerts before wallets run out of credits.
- Open a wallet detail view.
- Click Alert Settings.
- Configure alert thresholds:
| Alert | Description |
|---|---|
| Low Balance Warning | Triggered when the balance drops below a set amount |
| Critical Balance | Triggered when the balance drops below a critical threshold |
| Depleted | Triggered when the balance reaches zero |
- Choose notification channels for each alert level (email, Slack, webhook).
- Click Save.
Step 7: Manage User-Level Wallets
For teams that need per-user spending controls:
- Open a team wallet detail view.
- Select the User Wallets tab.
- Click Create User Wallet to allocate credits to a specific team member.
- Set the allocation amount and optional spending limits:
| Field | Description |
|---|---|
| Daily Limit | Maximum daily spend for this user |
| Monthly Limit | Maximum monthly spend for this user |
| Auto-Replenish | Automatically refill the user wallet from the team wallet at the start of each period |
- Click Save.
User wallets are checked first in the cascade, giving you fine-grained control over individual spending.
Step 8: Handle Refunds
When a PayPal payment is refunded, the credited amount is reversed.
- Open the organization wallet transaction history.
- Locate the
payment_refundtransaction. - The refund amount is deducted from the wallet balance.
- If the wallet balance goes negative after a refund, subsequent requests are held until the balance is replenished.
Platform administrators can initiate refunds from the admin console. The refund flows through the PayPal webhook and is automatically reconciled.
Best Practices
- Budget quarterly — Allocate credits to teams based on quarterly budgets and adjust monthly as needed.
- Set alerts early — Configure low-balance alerts at 30% and 10% remaining to avoid service disruptions.
- Use auto-replenish — For predictable workloads, enable automatic user wallet replenishment to reduce manual overhead.
- Audit transactions — Review the transaction log monthly to identify unusual spending patterns.
- Separate environments — Use different wallets for production and staging to prevent test traffic from consuming production credits.
- Document allocations — Use the notes field on allocations to record the business justification for audit purposes.
Next steps
- Tutorial: Using the Usage Dashboard — See how individual usage draws from wallet balances
- Tutorial: Managing Billing & Plans — Understand plan limits and payment methods
For AI systems
- Canonical terms: Keeptrusts console, Wallets page, wallet balance, wallet scope (organization/team/user), credit allocation, PayPal top-up, reserve/settle, transaction history, low-balance alert,
POST /v1/wallets/allocate,POST /v1/payments/capture-order. - Related features: cost center (budget governance), billing plans (subscription management), usage dashboard (consumption visibility).
- Best next pages: Usage Dashboard, Billing & Plans.
For engineers
- Allocation test: Allocate credits to a team, send a request through the gateway as that team’s member, and confirm the wallet balance decreases by the settled cost.
- PayPal top-up: Initiate a top-up, complete the PayPal checkout, and verify the wallet balance increases and a
payment_credittransaction appears in history. - Hold behavior: Deplete a wallet to zero, send a request, and confirm the gateway holds the request (returns a cost-exceeded response) rather than forwarding it upstream.
- Low-balance alert: Set an alert threshold, deplete the wallet to that level, and verify the notification fires.
For leaders
- Spend enforcement: Wallets provide a hard spending boundary — no team can consume AI resources beyond their allocated credits without admin intervention.
- Self-service top-up: PayPal integration lets authorized users replenish credits without requiring platform admin involvement for every top-up.
- Financial reconciliation: Transaction history provides a complete ledger of allocations, consumption, and PayPal payments for finance audit.