# Topping up

A top-up puts money on the advertiser's ad balance. This guide covers the payment method types, how each is credited, what happens when a payment fails, and the one action that costs an advertiser their account. For what the balance is and how campaigns draw on it, see https://ad.api.imem.me/docs/balance.md | docs_balance.

## Methods

- Top-ups are done in the Mini App.
- The method types are `stars` (Pay using Telegram Stars), `stripe` (International bank card), `yookassa` (Russian bank card), `crypto` (Pay with popular cryptocurrencies), `tribute` (Visa, Mastercard and other cards). Which ones are live, and each method's minimum and maximum, change over time and are read in the Mini App.
- Card and Stars payments are credited once the payment provider confirms them.
- A team member tops up a team's balance by paying from their own account inside the team; the team's balance is credited.

## Crypto invoices

A crypto top-up uses an invoice: a deposit address, a token and network, and an expiry time.

- Once the deposit is seen on the blockchain, the top-up is **Pending**. Pending money can't be spent until the payment is confirmed.
- Paying more than the invoice credits the extra. Paying less credits a proportionally smaller amount.
- An unpaid invoice can be reopened. Dismissing it only hides it: paying it later still credits the balance.

## Success and failure

- On success the user gets a Telegram message, and the amount includes any bonus. Bonuses on a top-up are described in https://ad.api.imem.me/docs/bonuses.md | docs_bonuses.
- On failure nothing is credited and the user is told.
- A crypto deposit can fail a compliance (anti-money-laundering) check. Nothing is credited, and the user is asked to contact customer support; the support contacts are in https://ad.api.imem.me/docs/overview.md | docs_overview.

## Level

- Paid top-ups raise the account's level. Bonuses, promocodes and refunded top-ups don't count.
- A level, once reached, is kept.
- Levels with cashback return a share of what the account's campaigns spent in a calendar month (UTC) to the balance early in the next month, at the rate of the level held when it is credited. It shows in the balance history as a cashback entry for that month. The cashback accrued so far in the current month is an estimate until it is credited.
- The levels, the amount each needs, what each includes and how much the account has paid so far change over time and are read in the Mini App.

## Refunds block the account

**Refunding a payment permanently blocks the account.** If a top-up payment is refunded or charged back through the payment provider (a card refund, a chargeback, a Stars refund), the amount is taken back from the balance it was credited to and the account that paid is blocked for good. Warn the user before they request one.
