Skip to main content
Use Credit History to show a customer’s wallet transactions: credits added, credits spent, and the reason for each. Part of Credits Widgets.

Supports

  • Credit and debit transactions, with reason labels
  • Pending-transaction styling
  • Multiple wallets, with a selector shown when there is more than one
  • Pagination
  • Loading skeleton state
  • Empty state when there are no transactions

Best used for

  • Customer portal billing tab
  • Account settings
  • Wallet detail pages

Import

Usage

Pagination is fully controlled: the component has no dependency on a router or URL, so you own the current page in your own state and pass it back in.
For accounts with more than one wallet, also pass wallets, selectedWalletId, and onSelectWallet:
See Ways to provide data for SDK, API, backend, and static JSON options.

Map Flexprice API data

See also

Credits Widgets

Overview of both credits components.

Credit Balance

Wallet balance card showing current credits and monetary value.