> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/retail-operations/inventory/available-to-promise/threshold-rules.md).

# Configure threshold rules

Hold back channel-level inventory for selected products with threshold rules.

A threshold holds back inventory after HotWax Commerce combines the inventory contributed by a channel.

For example, suppose three facilities contribute 90, 90, and 40 available units to one inventory channel. The channel total is 220 units. A threshold of 10 leaves 210 units available before other deductions.

## Create a threshold rule

1. Open `Sourcing` > `Threshold`.
2. Select `Create threshold rule` when the page has no rules, or select the add button.
3. Enter a unique `Name`.
4. Enter a non-negative `Threshold` value.
5. Select one or more channels, or turn on `Select all channels`.
6. Define the product scope under `Products by tags` and `Products by feature`.
7. Leave the product filters empty to apply the rule to all products in the selected channels.
8. Select the save button.

<figure><img src="https://2261579663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGNcmGkoNRfptyho21A56%2Fuploads%2Fgit-blob-6925c97c0125c3d21eca245f36d0c8414bc3afe7%2Forder-routing-threshold-configuration.png?alt=media" alt="Edit threshold rule page with a threshold value, selected channel, and included and excluded product filters"><figcaption><p>Review the threshold value, channel scope, and product filters before saving the rule.</p></figcaption></figure>

If no channels are available, select `Create channel` or `Manage channels` from the rule form. See [Create inventory channels](/documents/retail-operations/inventory/available-to-promise/create-channels.md) for the full setup.

## Review and edit rules

Expand a rule card to review its threshold value, channels, and product filters.

* Select the threshold value chip to change the value without opening the full form.
* Select `Edit rule` to change the name, channel scope, or product filters.
* Select the archive button to remove the rule from the active sequence.
* Expand `Archived` to restore an archived rule.

## Set rule priority

The last matching rule in the sequence sets the threshold value for a product and channel.

Place a broad base rule before its specific exceptions. Use the sequence button at the bottom of the page, drag the rules into position, then select the save button.

For schedule controls and execution history, see [Schedule sourcing rules](/documents/retail-operations/inventory/available-to-promise/schedule-atp-rules.md).


---

# 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 dynamically by asking a question.

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

```
GET https://docs.hotwax.co/documents/retail-operations/inventory/available-to-promise/threshold-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
