BILLING Admin

BILLING

Sessions over time

By tariff

Top consumers (seconds)

A tariff plan describes limits & mode, plus the priority it is proposed with and whether it is given to new users on registration. The priority that actually decides a fight and the start/finish dates live on each user's subscription — edit them in Users → open a user. That is how a higher-priority discount that only activates on a future date is created.

IDNameModeQuotaSessionsResetsGranted for PrioNew usersAdds upCampaign ends
IDUnique IDStatusMultiOpenCreated

The date range filters on when a session started, so a long-running session stays listed. Charged seconds are the write-offs booked against the session (always 0 on a PERIODIC tariff, which does not meter time).

IDUserTariffModeStartedFinished DurationChargedResource

Ledger

TimeUserTariffReasonAmountSession

Spend by user (period)

UserSecondsSessions
IDCodeTariffByStatusLeft/TotalActive fromExpires

Tariff

Shown to the subject

The app shows this instead of the code name. It picks the subject's language, then the base language (pt_BR → pt), then ru, then en; with none of those it falls back to the code name.
LanguageText

Voucher

User

Subscriptions (a subject may hold several at once · the state column is the accounting engine's own answer)

TariffModeStatePrioStartFinishQuota left

Assign tariff (direct, no voucher)

“Issue voucher & apply” cuts a single-use voucher for the chosen tariff and redeems it for this user straight away, so the grant goes through the same accounting path a client would take (dates and counters come from the tariff, not from the fields above).

Redeem an existing voucher

Metered balance

The stored figure is seconds used; “left” is the plan limit minus that. Edit either one — the other follows. The correction is written to the ledger as an ADJUST transaction.

Edit subscription