> 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). Agents can also search and read this documentation through its [MCP server](https://docs.hotwax.co/documents/~gitbook/mcp).

# 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](https://docs.hotwax.co/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](https://docs.hotwax.co/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 by asking a question.

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

```
GET https://docs.hotwax.co/documents/retail-operations/inventory/available-to-promise/threshold-rules.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.
