> For the complete documentation index, see [llms.txt](https://helpdesk.ldtsoft.work/ldt-digital-downloads/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdesk.ldtsoft.work/ldt-digital-downloads/sell-your-digital-products/how-to-configure-and-sell-license-keys.md).

# How to configure and sell license keys

Upload license keys, tag them and sell a product where every order gets its own key automatically.

Sell activation codes, game keys or software licences: upload your keys once, then let the app give every order its own key automatically.

### 1. Upload your license keys

Go to **LDT Digital Downloads → License Keys** and click **Upload License Keys**. The counters on top show what you have: **All**, **Assigned**, **Available** and **Pending**.

<figure><img src="https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-307f2da92c07ed0b48d27daf3dff9bf11f9ea786%2Flicense-keys-page.png?alt=media" alt="License Keys in the sidebar with the All, Assigned and Available counters and the Upload license keys button"><figcaption><p>License Keys → Upload License Keys</p></figcaption></figure>

On the upload screen:

* **License key type** — keep **Text** to paste a list; **QR Code** or **File** are for keys kept as images or a file.
* **License keys** — paste **one key per line**.
* **Tags** — add a tag such as `Office2019` to group this batch, so a product can use exactly these keys.
* Click **Upload**. Keys you already uploaded are ignored, and orders that are still waiting for a key get one automatically.

<figure><img src="https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-7820a5aa816225131fa3ae07368dd4ffbfd67ae9%2Flicense-keys-upload-dialog.png?alt=media" alt="Upload license keys screen with License key type, the keys field, the duplicate behaviour options and the Upload button in the app bar"><figcaption><p>One key per line, then tag them</p></figcaption></figure>

### 2. Create the digital product

Go to **LDT Digital Downloads → Products** and click **Add digital product**.

<figure><img src="https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-d221d0dbf7e9f623a23b6b5f0a2057a2082bd495%2Fproducts-add-digital-product.png?alt=media" alt="Products in the LDT Digital Downloads sidebar with the Add digital download button in the app bar"><figcaption></figcaption></figure>

In the **Select product** dialog tick the Shopify product you want to sell with a key, then click **Select**.

<figure><img src="https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2FkyvdJbaVoBNSPO60sdCw%2Flicense-keys-select-product.png?alt=media" alt="Select product dialog with a Shopify product ticked and the Select button"><figcaption></figcaption></figure>

### 3. Turn on license keys for the product

In the product form open the **Selling digital content** tab and tick **This is license key**. Then pick where the keys come from in **License key inventory**:

* **Use tagged license keys** — keys from the batch you tagged; choose it under **License key tag** (for example `Office2019`).
* **Use untagged license keys** — any free key from your inventory (only offered when your store uses untagged keys).
* **Manually** — you paste the key yourself on each order.
* **Use randomly generated license keys** — the app creates the key.

<figure><img src="https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-5698445c0a6c1badc4c332bc663be02fb0689b2d%2Flicense-keys-product-license-setting.png?alt=media" alt="Selling digital content tab with the This is license key option to tick and the License key inventory options"><figcaption></figcaption></figure>

Click **Save** in the app bar — the button appears as soon as something changed.

### Result

Every new order for this product gets its own key, sent to the customer together with the files. You can see or replace it in **Orders → the order → License key(s)**.
