# Plans and limits

A plan belongs to a **company**, and covers every project in it. Each plan includes a set amount of each thing Rezin Core counts each month, and says what happens beyond that amount.

> **Important** Rezin Core is in development and available by invitation. Billing runs in **test mode** until public launch: no payment provider is connected and nothing is charged. Prices are on the [pricing page](/pricing.html), not here.

## The plans

There are four: **Free**, **Pro**, **Team** and **Compliance**. A new company starts on Free. What each one includes, and its price, is on the [pricing page](/pricing.html); the company's **Billing** page in the console shows the same numbers for the plan you are on.

## What is counted

| Counted | How |
|---|---|
| Projects | How many live projects the company has. |
| Database size | Each project's own size. The allowance is per project, not shared. |
| File storage | Averaged over the month, so a gigabyte kept all month counts as one gigabyte. |
| Data transfer | The size of every answer your project's API sends, including files and function answers. |
| Monthly active users | People who signed in to your application, or used a session, during the month. Counted once each. |
| Function runs | Every run of one of your functions, however it was started. |
| Realtime connections | The most connections open at the same moment. |
| Realtime messages | Every change told to a listener. |
| Emails sent | Emails your application sent through Rezin Core. |

Everything except database size is shared by the company's projects. A month is a calendar month, and it turns at midnight UTC on the 1st. How each number is measured is on [Usage and metering](https://rezincore.com/docs/usage-and-metering.md).

## On the Free plan: firm limits

Free is never billed. When something reaches its allowance, **that one thing** stops taking more until the month turns or the plan changes:

- **Database size**: the project that is full stops accepting new and changed rows. Reading and deleting still work. Its neighbours in the same company are not affected.
- **File storage**: uploads are refused. Downloads still work.
- **Monthly active users**: new sign-ups are refused. People who already have accounts still sign in.
- **Function runs**, **emails**, **realtime**: calls, sends and new connections are refused.
- **Data transfer**: the project's API as a whole answers `402` until the month turns.
- **Projects**: a new project cannot be created.

The console warns at **80%** and again at **100%**: on the company's Billing page, and in a band at the top of every page of an affected project.

**Nothing is ever deleted for being over a limit.** Rows, files, accounts, keys and settings all stay exactly as they were.

A refused request answers:

```json
{ "error": "limit_reached", "message": "This project's company has used all the file storage its Free plan includes this month. Nothing was deleted. ..." }
```

with status `402`. See [Errors](https://rezincore.com/docs/reference/errors.md).

## On a paid plan: extra use, and a spend cap

On Pro, Team and Compliance, use beyond the allowance is billed at the plan's published price for each unit. The **spend cap** is the most that extra use may cost in a month.

- A new paid company's cap is **$0**: you are never charged more than the plan itself, and the limits behave like Free's.
- Raise the cap to let extra use through, up to that amount.
- At the cap, whatever is over its allowance stops taking more, exactly as on Free. Nothing is deleted.
- Turn the cap off and extra use is always billed.

Set it under **Billing → Spend cap**. Only an owner of the company can. Budgets for one item or one project, the choice between stopping and slowing down, and the warning emails are on [Spending caps and alerts](https://rezincore.com/docs/spending-caps.md).

## Projects that nobody uses are paused (Free only)

A project on the Free plan whose API has not been called for 7 days is **paused**:

- The company's owners are emailed about two days before.
- A paused project's API answers `403` with `"error": "project_paused"`.
- Its data, files, accounts, keys and settings are kept exactly as they were.
- **Resume** is one button, at the top of any page of the project in the console. It takes effect at once.
- Any call to the project's API counts as use and resets the seven days.

Projects of a company on a paid plan are never paused.

## Changing plan

- **To a larger plan**: at once, through checkout. You pay for the rest of the current month, less what the current plan already covered.
- **To a smaller plan, or back to Free**: at the end of the month, because the month is already paid for. Until then nothing changes, and you can withdraw the request.

Both are on the company's **Billing** page. See [Billing](https://rezincore.com/docs/billing.md).
