> 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/orders-and-delivery/how-to-automate-order-processing.md).

# How to automate order processing

Let LDT Digital Downloads fulfil digital orders, tag them and hand out license keys on its own, with no manual step per order.

Stop marking digital orders by hand: tell LDT Digital Downloads when to fulfil them, what to tag and how to treat license keys, and it handles every new order.

### 1. Open the order processing settings

Go to **LDT Digital Downloads → Settings → Order processing**.

The page is one column of switches: what to do with an order, then a **License automation** card for everything about keys.

![Order processing settings with the fulfilment switches and the Fulfillment delay field](https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-ed00f8c8d9f9ea30d5d1d80dba5c29c2dbef8328%2Fsettings-order-add-tag.png?alt=media)

### 2. Skip the orders you do not want touched

Turn on **Ignore archived order** so archived orders are left alone.

![Order processing settings with the Ignore archived order switch](https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-d654e8d4c59d89b3327cec1dac5ce9499534cde0%2Fsettings-order-archived.png?alt=media)

### 3. Choose when an order counts as fulfilled

Under **Automatically mark fulfilled when** pick the moment that fits your shop:

* **After automatic email is sent** — the customer already has the files when the order is marked fulfilled.
* **After order is fully paid** — fulfilment follows the payment.

Then decide how far the app goes:

* **Mark digital items as fulfilled automatically** — *We will mark all digital items in the order that have files attached as "Fulfilled"*.
* **Fulfill the physical item** — also fulfil the physical lines, for mixed orders.
* **Do not automatic fulfillment if order missing license key due to out of stock** — hold the order back while its keys are missing.
* **Fulfillment delay** — wait the number of **Seconds** you enter before fulfilling, handy when the payment webhook arrives before the order is ready.

![Order processing settings with the Automatically mark fulfilled when options and the fulfilment switches](https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-25537a6604822416a3c51fb131e208bb1b33367f%2Fsettings-order-fulfil.png?alt=media)

### 4. Tag the orders the app processed

Under **Add tag** enter a **Tag value**. Add tags to orders processed by LDT. Tags can be used to filter orders — for example one tag for everything the app fulfilled.

![Add tag switch with the description of what the tags are for](https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-ed00f8c8d9f9ea30d5d1d80dba5c29c2dbef8328%2Fsettings-order-add-tag.png?alt=media)

### 5. Decide what happens to license keys

The **License automation** card holds the key rules:

* **Automatically notify when an order is missing license keys** — you hear about it instead of finding out from the customer.
* **Automatically unlink license keys after order is cancelled** — the key goes back to the pool.
* **Automatically unlink license keys after order is refunded** — same, for refunds.
* **Copy license keys information to order additional details** — puts the keys on the order with a **Label prefix** you choose.
* **Receive an email when the stock of license keys is low** — top up before orders start waiting.

![License automation card with the license key switches](https://1863660695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iG7j4lDhziM0FqdCCU8%2Fuploads%2Fgit-blob-aa197809ee379b8ce44a861f110f32e168784c7d%2Fsettings-order-license-automation.png?alt=media)

### Result

New orders are fulfilled, tagged and given their license keys without you opening the order page, and you get told only when something is missing.

### Troubleshooting

* **Orders stay unfulfilled.** Check **Automatically mark fulfilled when** is set and that the order is not archived; **Ignore archived order** skips those on purpose.
* **An order stopped waiting for its key.** Turn off **Do not automatic fulfillment if order missing license key due to out of stock** if you would rather fulfil now and send the key later.
* **A refunded order still has its key.** Switch on **Automatically unlink license keys after order is refunded**.

### Related

* [How to configure and sell license keys](https://helpdesk.ldtsoft.work/ldt-digital-downloads/sell-your-digital-products/how-to-configure-and-sell-license-keys.md) — in Sell your digital products
