> For the complete documentation index, see [llms.txt](https://docs.nalpeiron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nalpeiron.com/zentitle2-docs/developers/no-code-test-application/creating-a-product-and-entitlement.md).

# Creating a Product and Entitlement

Create a matching product, features, attributes, offering, and entitlement with activation codes in the Zentitle UI so the ZentitleOnPremDemo desktop app can be tested end to end.

### Creating a Product and Entitlement in the Zentitle UI for testing

In order for the demo to work, you will need to add a new entitlement with the right features and attributes to match those in the demo app.

{% hint style="info" %}
First, [read the documentation](/zentitle2-docs/ui-product-catalog/licensing-and-business-models.md) and fully understand the product paradigm and how to set up a product and its parts, including an entitlement, with activation codes.
{% endhint %}

**Once you are familiar with how Zentitle2 works, you can set up the specific parameters required to run the demo successfully - all these changes are required to allow you to test successfully.**

#### Steps to match the server side with the demo app:

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FmeV6k4BKvu5BmoSNMYHl%2Fsetup%20server2.png?alt=media&amp;token=3a995f1f-a429-4710-afce-75459b5afbc1" alt=""><figcaption></figcaption></figure>

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FIvC85MvJkVs2NsLCzG2A%2Fcounter_1_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=e9e24ee0-b25b-4028-a774-f5b21e399e85) Login to your account and navigate to the "product" section.

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FBggKfcwtHYyokAoW6CA4%2Fcounter_2_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=b4a1c291-524f-4064-838e-5dfaac404fea) Add a new product. Name it something useful, in this case, "OnPremDemoApp".

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FI6Zo83GlTQu11zKPJOKX%2Fsetup%20server3.png?alt=media&amp;token=f2d798b4-ff85-4268-8ed4-0eccacfa6517" alt=""><figcaption></figcaption></figure>

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FgP2ydddGH7JrOOoUkK6o%2Fcounter_3_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=25e6aed0-9d7d-4425-b8d7-82ae916130d2) Now select the name and edit the product details. To prevent confusion, we suggest keeping it to only the test parameters.

See the image: Lease period one day, the rest blank.

Click Save.

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FbD56uuwb5zKMu9Rj7cqZ%2Fsetup%20server4.png?alt=media&amp;token=07d3c44a-16ed-4578-ba4f-06b323ac65bf" alt=""><figcaption></figcaption></figure>

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FPDkUUXICZp0VjoNW7xDd%2Fcounter_4_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=76f36e3b-7c9c-4fcf-b9bc-fe96049d5b4d) Next, go to the next tab under "product" and add the required test features, attributes, and advanced features.

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2Fs7d2JtcNc7xq2NImAxtE%2Fsetup%20server5a.png?alt=media&amp;token=0f22718c-c7c6-40d8-86eb-7471826109a7" alt="" width="377"><figcaption></figcaption></figure></div>

* Add features with the following keys one by one: **AAC, FLAC, MP3, OGG, OPUS, and WAV.** Set the "value" to **Enabled** for them all. Click Save, and repeat.

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FrbP9wRYMXvTmLcHgPNae%2Fsetup%20server5b.png?alt=media&amp;token=df2446f4-ed72-4e1e-bbfa-d57a7ab310c8" alt="" width="381"><figcaption></figcaption></figure></div>

* Add two **string** attributes with the following keys: **Company, Plan.** Click Save, and repeat.

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2F5LLFyuJSWDeZ7B884Y9C%2Fsetup%20server5c.png?alt=media&amp;token=507ff847-ef2b-486b-9e83-9493cf73b448" alt="" width="379"><figcaption></figcaption></figure></div>

* Add a **usage counter** with the key **FilesToConvert.** Set the value to **10** (conversions) and click save.

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FetxdRxT4wvpntmNqkr1h%2Fsetup%20server5d.png?alt=media&amp;token=3b9f85ac-bbcd-4671-a4eb-be8aca043806" alt="" width="385"><figcaption></figcaption></figure></div>

* Add an element pool with the key **Threads.** Set the value to **4** (conversions) and click save.

The next tab is editions. We will use the default edition (no need to edit the edition part) so go to the next tab, "Offerings".

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FS9LcQuB6bM7ZfcGsSzfK%2Fsetup%20server6.png?alt=media&amp;token=ed984d14-4a8a-431e-9687-ed7eb59e137d" alt=""><figcaption></figcaption></figure>

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FeDNjcr6hYAUKl9tnMeXo%2Fcounter_5_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=c1110a9d-a776-4560-a37a-e9cf95e523cd) Add an offering by clicking on the add button on the top right. The Product is pre-selected.

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FsoQvZwn1IbMSwL6s1LSI%2Fsetup%20server6b.png?alt=media&amp;token=07ed6fd8-fad3-4b3f-b54b-3b220b1083cf" alt="" width="379"><figcaption></figcaption></figure></div>

Edit the offering parameters exactly as below:

* Give the offering a name e.g. Standard
* Add in a short dummy SKU
* Leave the edition as default
* Pick a plan from the existing examples (e.g., a one-year subscription).
* Set the seat count e.g. 1
* Set the mode e.g. concurrent
* Click Save

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2F5JDdCdLb01H9EAKq0NRV%2Fcounter_6_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=9b27bfd8-0d64-42c3-a7d7-618039480ed4) Now to the final couple of steps. Add an **entitlement** and edit the parameters.

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FJxk0E9t69DwGQPCeAQ3m%2Fsetup%20server7.png?alt=media&amp;token=d678f743-f51d-445e-9825-5424313d542e" alt=""><figcaption></figcaption></figure>

* Navigate to the "entitlements" option in the left navigation or the last tab when editing a product.
* Click Add

<div align="left"><figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FFAxQFyjRv6Dn5tp7Ns7G%2Fsetup%20server8.png?alt=media&amp;token=7bd0bcb9-7126-4fbc-9a22-942c4e511bd5" alt="" width="382"><figcaption></figcaption></figure></div>

* **Next, build up the offering from the "parts" discussed above, starting with the "product" in the system you want to use for this offering, choosing from the dropdown menu.** If you start in the product section the product name is pre-selected, otherwise you will need to set that to your test product.
* Select the test offering
* Skip the customer
* Add order ref as you wish
* Click save

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FgGUEva6qUYylH1E6PR9P%2Fcounter_7_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=fa4abdea-f982-44a2-a814-1a26c4f1a48e) Now we edit the entitlement to add in some test parameters under the "attributes" fields we added earlier.

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FcSqDkyqrTs4xf3H4YIqE%2Fsetup%20server9.png?alt=media&amp;token=640ad708-d636-4200-b62c-7a58d3f657f6" alt=""><figcaption></figcaption></figure>

* Fill in the company and plan attribute to your test values, e.g., "Boeing" for the company name and "Standard" for the plan name for example.
* The rest of the parameters should be prefilled.
* Click save.

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2Fdv5dbP2NLL7X19hgDahD%2Fsetup%20server10.png?alt=media&amp;token=1673102e-95f2-47b9-a4bc-50ca9efc115c" alt=""><figcaption></figcaption></figure>

![](https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FyxDaMHMsVVzxZceM7Xal%2Fcounter_8_FILL0_wght400_GRAD0_opsz24.svg?alt=media\&token=1083ccc1-9706-4c7e-a4a5-8d1f9dd6b547) The final serverside step is to Add activation codes to the entitlement (e.g., add ten codes for testing).

* Go the bottom of the new entitlement page, on the bottom right is the activation codes section. Click add.

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2F3Oi98tFWvEoG08RwChVX%2Fsetup%20server10b.png?alt=media&amp;token=5d9ce037-614f-4bd3-88b5-512873bf0fc3" alt=""><figcaption></figcaption></figure>

* Click Generate
* Add 10 (or whatever number of codes you like)
* Click Save

<figure><img src="https://2412542193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1tBhTGn5igyI6ECLHjpC%2Fuploads%2FwcnzuaCMj6nSCSvvHh4e%2Fsetup%20server10c.png?alt=media&amp;token=37918176-afb1-4a1a-87af-9bb4762cde1b" alt=""><figcaption></figcaption></figure>

* Now you will see your codes ready to use in the codes section.
* You can copy a code to the clipboard ready to paste into the OnPremDemoApp on your desktop or export the codes for testing later.

**You are now all set to move to the desktop app, keep the Zentitle UI open as well so you can see what happens on the server when you perform actions on the desktop client.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.nalpeiron.com/zentitle2-docs/developers/no-code-test-application/creating-a-product-and-entitlement.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
