# Packages and billing

URL: https://docs.folkways.io/docs/console/packages-and-billing

How packages, billing periods, upgrades, downgrades, cancellation and failed payments work for a workspace.

Each workspace is on one **package**. The package sets the workspace's allowances, which all its segments share:

| Allowance | Counts |
| --- | --- |
| Connections | Connections open at the same time |
| Messages | Every publish plus every delivery, per month |
| Data transfer | Bytes in plus bytes out, per month |
| Topics | Topics that exist at the same time |
| Segments | Segments in the workspace |

The current packages, their prices and allowances are on [folkways.io/pricing](https://folkways.io/pricing).
[Usage and limits](/docs/console/usage) explains how each is counted and what happens near a limit.

## Free and paid packages [#free-and-paid-packages]

- **Free** is ready as soon as you create the workspace, with no payment details. Each person can own one Free
  workspace.
- **Paid** packages are billed monthly or annually, through a secure checkout. Annual billing costs less per month.
  A new workspace on a paid package is ready once the payment is confirmed.

Whichever you choose, **usage is counted per month**, starting on the day the subscription started. An annual
package still resets its monthly allowances every month.

## Changing package [#changing-package]

Open **Billing** and pick another package.

| Change | Takes effect |
| --- | --- |
| Upgrade | At once. The current period and its usage carry on, under the higher allowances |
| Downgrade | At the next renewal. Until then, the current package stays |
| Monthly ↔ annual | At the next renewal |

You can't move to a package with fewer segments than the workspace has; delete segments first. Segment limits set
above the new package's are lowered to fit.

## Cancelling [#cancelling]

Cancel from **Billing**. The workspace keeps its package until the end of the paid term, then its segments stop
serving (clients get `Suspended`). Until then you can undo the cancellation. To keep the workspace running, move it
to Free instead.

## When a payment fails [#when-a-payment-fails]

If a renewal payment fails, the workspace keeps its package during a grace period while the payment is retried,
and owners and admins are told, again the day before the grace ends. If it still isn't paid, the workspace moves to
Free: open connections stay, and work over the Free allowances is refused with `QuotaExceeded`. As soon as the
payment goes through, the paid package is back.
