# Licensing models

This guide shows the policy settings for common licensing models. Seatify has no separate setting for a model. Each model is a set of settings on a [policy](../../../concepts/policies/).

## Before you start

- You need a [product](../../../concepts/products/) for your application.
- Your application claims and validates licenses. See [Add your application](../add-your-application/).

Each model sets only the settings in its table. The other settings of the policy can have any value.

## Choose the models

Choose one model for time and one model for devices and seats. Put the settings of both models on one policy. For example, a yearly subscription for a team uses the settings of [Subscription](#subscription) and [Team seats](#team-seats).

Time:

- [Subscription](#subscription)
- [Perpetual license](#perpetual-license)
- [Perpetual fallback](#perpetual-fallback)
- [Perpetual license with a year of updates](#perpetual-license-with-a-year-of-updates)
- [Trials](#trials)

Devices and seats:

- [Node-locked](#node-locked)
- [Team seats](#team-seats)
- [Floating devices](#floating-devices)

[Prepaid keys](#prepaid-keys) change one setting of a time model.

## Time

### Subscription

The customer pays for each period, such as a month or a year. The license stops working when a period ends without a payment.

| Setting | Value |
| --- | --- |
| Duration | The length of one period, such as one month or one year. |
| Expiry starts | At issue |
| Grace period | Time for a late payment, such as seven days. This setting is optional. |
| After expiry | Expire |

After each payment, move the expiry date of the license forward in the dashboard. See [Expiry](../../../concepts/licenses/#expiry).

During the grace period, the status of the license is `grace`, and the license still works. After the grace period, the License API answers with `valid` set to `false` and the reason `expired`. The Distribution API refuses the license key. Your application tells the user to renew the subscription.

### Perpetual license

The customer pays once and uses the license forever. The license gets every new release.

| Setting | Value |
| --- | --- |
| Duration | Lifetime |

A lifetime license never expires. The After expiry rule never applies to it.

### Perpetual fallback

The customer pays for a subscription. When the subscription ends, the customer keeps the versions that were released while the subscription was paid. New versions need a renewal.

| Setting | Value |
| --- | --- |
| Duration | The length of one period, such as one year. |
| Expiry starts | At issue |
| After expiry | Perpetual fallback |

After the expiry date, the License API still answers with `valid` set to `true`. The answer also has `expired` set to `true` and the status `expired`. Your application keeps working. It can tell the user that the license no longer gets new versions.

The Distribution API gives an expired license only the releases that were published on or before its expiry date. An update check offers the newest of these releases. During the grace period, the license still gets all releases.

A renewal moves the expiry date forward. The license then gets the newer releases too. To give a fix to customers whose license has expired, backdate the release. See [Backdated releases](../../../concepts/releases-and-artifacts/#backdated-releases).

### Perpetual license with a year of updates

The customer pays once and uses the license forever. New versions are included for one year after the purchase.

Use the settings of [Perpetual fallback](#perpetual-fallback) with a duration of one year. The license is not renewed each year. To sell another year of new versions, move the expiry date of the license forward by one year.

### Trials

Let your application run the trial by itself. The user then needs no license key to start.

1. On the first start, your application stores the start date of the trial on the device.
2. During the trial, your application works without a license key. It does not call Seatify.
3. When the trial ends, your application asks for a license key and claims the license. See [Add your application](../add-your-application/).

#### Trial licenses

If Seatify must enforce the end of the trial, issue a trial license to each user.

| Setting | Value |
| --- | --- |
| Duration | The length of the trial, such as 14 days. |
| Expiry starts | At first activation |
| After expiry | Expire |
| Bind devices | On |
| Device limit | 1 |

A trial license has these limits:

- Each trial license is issued in the dashboard. The user cannot start a trial without a key from you.
- Seatify does not stop one device from claiming a second trial license.
- A license cannot move to another policy. When the user buys, issue a new license from a paid policy. Your application then claims the new key.

### Prepaid keys

A reseller or a store sells the key before the customer uses it. The key can wait a long time before its first use.

| Setting | Value |
| --- | --- |
| Expiry starts | At first activation |

Use this setting together with a time-limited model, such as [Subscription](#subscription). It replaces the Expiry starts setting of that model. The license has no expiry date until its first claim. The first claim sets the expiry date to the time of the claim plus the duration.

A lifetime policy needs no change, because its licenses never expire.

To tell the keys of each reseller apart, give each reseller its own policy with its own key prefix. See [Policy properties](../../../concepts/policies/#policy-properties).

## Devices and seats

### Node-locked

The license works on one device only.

| Setting | Value |
| --- | --- |
| Bind devices | On |
| Device limit | 1 |

To move the license to another device, your application releases the license on the old device. The new device then claims it. If the old device is lost, release its binding in the dashboard. See [Release](../../../concepts/seats-and-devices/#release).

### Team seats

A company buys a number of seats. Each person on the team uses one seat on all of their devices.

| Setting | Value |
| --- | --- |
| Bind customers | On |
| Seat limit | The default number of seats for a license. |

Issue one license to each company. A license can override the seat limit of its policy, so one policy works for teams of every size. See [License overrides](../../../concepts/policies/#license-overrides).

Each claim names the person with a customer reference. Send the same reference from every device of that person. See [Choose a customer reference](../add-your-application/#choose-a-customer-reference).

A seat stays until it is released in the dashboard. Release the seat when a person leaves the team. The License API cannot release a seat.

To limit the devices too, also bind devices and set a device limit. The device limit counts the devices of the whole team, not of each person.

### Floating devices

A group of users shares a fixed number of devices. A device holds a slot only while your application runs on it.

| Setting | Value |
| --- | --- |
| Bind devices | On |
| Device limit | The number of devices that can run your application at the same time. |
| Require heartbeats | On |
| Heartbeat interval | The time between two heartbeats, such as five minutes. |
| Heartbeat grace | Extra time for a late heartbeat. This setting is optional. |

Your application claims the license when it starts. It sends a heartbeat after each heartbeat interval while it runs. It releases the license when it closes, and the slot is free immediately.

If your application stops without a release, the slot is free when the lease ends. The lease lasts for the heartbeat interval plus the heartbeat grace. A shorter interval frees the slot of a crashed application sooner. See [Heartbeats and leases](../../../concepts/seats-and-devices/#heartbeats-and-leases).

When all slots are taken, a claim fails with the reason `device_limit_reached`. Tell the user to try again later.

Seats do not float. A seat stays until it is released in the dashboard.

## Next steps

- [Add your application](../add-your-application/)
- [Limit concurrent runs](../limit-concurrent-runs/)
- [Offline validation](../../offline-use/offline-validation/)
- [Updates and download links](../../releases/updates-and-download-links/)
- [Check for an update](../../../distribution-api/check-for-an-update/)

