# License Type Options

LicenseSpring offers a versatile range of license types to cater to different software licensing models. Each license type is designed to accommodate specific business requirements and user scenarios.

{% stepper %}
{% step %}

### Consumption Licenses

[Consumption Licenses](/license-entitlements/license-types.md): Consumption licenses are ideal for applications where usage is metered based on certain metrics, such as the number of API calls, data transfer volume, or any other measurable unit. These licenses allow developers to set usage limits and track consumption, ensuring fair and flexible licensing for their users.
{% endstep %}

{% step %}

### Time-Limited Licenses

[Time-Limited Licenses](/license-entitlements/license-types/time-limited-vs-subscription-licenses.md): Time-limited licenses restrict the software's usage to a specified duration. Users can enjoy access to the application for a predetermined period, after which the license expires. Time-limited licenses are commonly used for trial versions, enabling potential customers to explore the software's features before making a purchase decision.
{% endstep %}

{% step %}

### Subscription Licenses

[Subscription Licenses](/license-entitlements/license-types/time-limited-vs-subscription-licenses.md): Subscription licenses grant users ongoing access to the software for a recurring fee. With subscription licensing, users can enjoy continuous updates, support, and the latest features during the subscription period. This model fosters long-term relationships with customers and provides a steady revenue stream for software vendors.
{% endstep %}

{% step %}

### Perpetual Licenses

Perpetual Licenses: Perpetual licenses offer a one-time purchase of the software, granting users unlimited access without any time restrictions. Once obtained, users can use the software indefinitely, even without active subscriptions or renewals. Perpetual licenses are suitable for customers who prefer a one-time payment model and do not require continuous updates or support.
{% endstep %}
{% endstepper %}

The type of a license can be retrieved by accessing the following attribute of the `License` object:

{% tabs %}
{% tab title="C++" %}
{% code title="C++" %}

```cpp
LicenseType LicenseSpring::License::type()
```

{% endcode %}
{% endtab %}

{% tab title="C#" %}
{% code title="C#" %}

```csharp
LicenseType LicenseSpring.License.Type()	
```

{% endcode %}
{% endtab %}

{% tab title="Swift" %}
{% code title="Swift" %}

```swift
license.licenseType
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code title="Python" %}

```python
license.license_type()
```

{% endcode %}
{% endtab %}

{% tab title="Java" %}
{% code title="Java" %}

```java
LicenseData data = license.getData();
LicenseType licenseType = data.getLicenseType();
```

{% endcode %}
{% endtab %}
{% endtabs %}

To learn more about the different license fields and behaviors, see [License Types](/license-entitlements/license-types.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.licensespring.com/sdks/tutorials/licensing-scenarios/license-type-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
