Hanzo

Transaction

Track payments and balance changes for users and organizations.

Transactions record financial activity for users and organizations: purchases, recharges, and balance updates. They are created automatically when users pay or top up; balances update in real time.

Categories

CategoryEffectWhen
PurchaseNegative amount; balance decreasesBuying products or services (with balance or external payment).
RechargePositive amount; balance increasesBuying recharge products or topping up.

For recharge products, the system creates both a Purchase (payment) and a Recharge (balance increase) transaction.

Transaction properties

PropertyDescription
OwnerOwning organization.
NameTransaction id.
CreatedTimeCreation time.
CategoryPurchase or Recharge.
Typee.g. provider category.
SubtypeProvider-specific subtype.
ProviderPayment provider used.
UserUser (for user-level transactions).
AmountPositive = income, negative = expense.
Currencye.g. USD, CNY.
Statee.g. Created, Paid, Canceled, Timeout, Error.
PaymentRelated Payment (if any).

Balances

  • User balance — Stored on the user; tracks that user’s funds.
  • OrganizationorgBalance (org’s own funds) and userBalance (sum of user balances in the org).

Balances are updated when transactions are created, updated, or deleted.

Where to view transactions

  • User — In the user edit page, in the transactions table below user details.
  • Organization — In the organization edit page, for org-level transactions.

Both views show a chronological list with name, time, category, type, amount, and state.

How is this guide?

Last updated on

On this page