# Referral program

Any user can invite other advertisers and earn part of what they spend on ads. The program is run from the Mini App (https://t.me/iMe_ads_bot/app). The reward share, earning period, hold period and minimum withdrawal change over time and are stated in the program's Terms shown there.

## Link and referrals

Each user has a personal referral link that opens the iMe Ads Mini App, and `/invite` in the bot (https://t.me/iMe_ads_bot) gives it too. Someone becomes a referral only if they open iMe Ads through the link **for the first time**, so the link creates their account. Only the iMe Ads team can attach an existing account, and only one with no referrer yet. Users can't refer themselves. The link between referrer and referral is permanent. A new referral may also get a bonus on their first top-up: see https://ad.api.imem.me/docs/bonuses.md | docs_bonuses.

## What earns a reward

The referrer earns a share of what their referrals actually **spend on ads**. Top-ups and deposits earn nothing. Only spend within a set period after the referral joined counts.

## Referrals of referrals

- At some account levels, a referrer also earns a smaller share of what their referrals' own referrals spend on ads. Which levels include it and the share are read in the Mini App.
- Such a reward follows the same period, hold and cancellation rules as a direct one, with the period counted from when that person joined.
- Spend counts only while the referrer is entitled to this share. Earlier spend is not credited afterwards.
- These people are listed with the referrer's own referrals, each marked with the referral who brought them.

## Earnings

Each reward is an accrual, and its status is one of `accrued`, `released`, `revoked`.

- **Pending** (`accrued`): a new reward is held for a fixed safety window. It becomes available on its own when the window ends.
- **Available** (`released`): ready to withdraw. It still includes money reserved by an unpaid USDT request, until that request is paid.
- If a referral is banned, any of their rewards still pending are cancelled (`revoked`). Amounts already past the hold stay.

## Withdrawing

Every withdrawal comes from the available amount and must be at least the minimum in the Terms. There are two kinds, `balance`, `crypto`, and a withdrawal's status is one of `credited`, `pending`, `paid`, `rejected`. A restriction on the user refuses it: see https://ad.api.imem.me/docs/overview.md | docs_overview.

**To ad balance** (`balance`): instant and free. It is `credited` straight away, appears in balance history as a referral reward, and can be spent only on ads. See https://ad.api.imem.me/docs/balance.md | docs_balance.

**Cryptocurrency** (`crypto`): USDT to a wallet address valid for the chosen network. The networks are `TRON (TRC-20)`, `Ethereum (ERC-20)`, `BNB Smart Chain (BEP-20)`, `TON (TON)`.

- The request is `pending` while the team handles it by hand; the amount stays reserved out of the available total meanwhile.
- It then becomes `paid`, with a transaction hash, or `rejected` with a reason, in which case the money goes back to available.
- The user is told in Telegram either way.

Referral earnings are kept separate from the ad balance until they are moved there.
