Skip to main content
The Dashboard provides full visibility into your customers and every billing event that occurs in your project.

Customers

Customers in Velobase act as virtual accounts. They are tied to your own system’s users via a customer_id — the unique identifier you assign. You don’t need to manually create customers. When you make an API call to deposit or deduct credits for a customer_id, Velobase will automatically create the customer profile if it doesn’t exist yet.

Wallet Categories and Expiry

Clicking on a customer reveals their complete balance details. A single customer can hold multiple Wallet Categories (known as credit_type in the API).
WalletStatusExpiryTotalAvailableFrozen
defaultACTIVENever expires1,0001,0000
promo_campaign_2026ACTIVEDec 31, 2026500400100
Total1,5001,400100
This separation is incredibly powerful for promotional campaigns, refunds, or specific use cases:
  • Expiring Credits: You can grant credits that are only valid until a certain date (e.g., promo_campaign_2026). Velobase automatically ignores expired wallets.
  • Consumption Priority: When you deduct credits without specifying a wallet, Velobase consumes the ones that expire soonest first, maximizing value for the user.

Ledger

The Ledger is the single source of truth for all balance changes. Every API call that modifies a balance results in an immutable Ledger record. Key concepts for tracking transactions:
  • Transaction ID: Every operation requires a unique transaction_id from your system (or idempotency_key for deposits). This appears in the Ledger, allowing you to match a specific charge (e.g., task_xyz) to the exact credits frozen and consumed.
  • Operation Types:
    • DEPOSIT: Credits added to an account.
    • FREEZE: Credits reserved for an ongoing task.
    • CONSUME: Credits permanently deducted (often following a freeze).
    • UNFREEZE: Unused reserved credits returned to the available balance.
By using the Ledger and Transaction IDs, you can answer questions like “Why was user_987 charged 80 credits?” in seconds.