# Safety stock

Safety stock is a reserved buffer quantity that protects offline (in-store) sales from being cannibalized by online orders. Stock at or below the configured safety stock level is excluded from availability calculations ([AOS](/documentation/by-pillar/global-inventory-hub/stock/stock-availability.md#stock-availability-values) and [AFP](/documentation/by-pillar/global-inventory-hub/stock/stock-availability.md#stock-availability-values)) and from order routing — meaning a facility with stock equal to or less than its safety stock will not be considered for fulfilling online orders.

{% hint style="warning" %}
Safety stock is considered during order routing. If all facilities for an article have reached their safety stock level, the order may become unroutable.
{% endhint %}

## Configuration

Safety stock is configured per article and facility. Two levels are supported:

* **Global safety stock**: A single value applied automatically to all facilities for a given article. If a facility has no individual value set, the global value applies. This is only configurable via [API](https://fulfillmenttools.github.io/fulfillmenttools-api-reference-ui/#put-/api/safetystocks) by omitting the `facilityRef` in the request.
* **Facility-level safety stock**: A value configured for a specific facility, overriding the global value for that facility. This is configurable via [API](https://fulfillmenttools.github.io/fulfillmenttools-api-reference-ui/#put-/api/safetystocks) and [Backoffice](/documentation/backoffice/facility-view/inventory.md#what-is-safety-stock-and-how-is-it-edited).

{% hint style="info" %}
If both a global and a facility-level safety stock are configured, the facility-level value takes precedence for that facility.
{% endhint %}

## Safety stock in Backoffice

### Display

The stock detail view in the **Network view** shows safety stock at two levels:

* **Article header**: Displays the sum of all effective safety stock values across all facilities, giving a quick network-wide overview of total held-back stock.
* **Network module**: The **Safety stock** column shows the effective value per facility — regardless of whether it originates from a global or facility-level configuration.

### Configuration

Safety stock can be configured directly on the stock detail view:

* **Facility-level value**: Open the **three-dot menu** in the corresponding facility row in the Network module.

## API

Safety stock can also be managed via the [Safety stocks REST API](https://fulfillmenttools.github.io/fulfillmenttools-api-reference-ui/#put-/api/safetystocks) using a bulk `PUT` request to `/api/safetystocks`.

## FAQs

<details>

<summary>What happens when safety stock is reached?</summary>

Once the stock in a facility reaches or falls below the configured safety stock level, that facility's AOS and AFP for that article drop to 0. The facility is no longer considered for order routing.

</details>

<details>

<summary>Which value takes precedence — global or facility-level safety stock?</summary>

The facility-level safety stock always takes precedence over the global value. If no individual value is set, the global value applies.

</details>

<details>

<summary>What does the safety stock value in the article header show?</summary>

It shows the sum of all effective safety stock values across all facilities for that article.

</details>


---

# Agent Instructions: 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:

```
GET https://docs.fulfillmenttools.com/documentation/by-pillar/global-inventory-hub/stock/safety-stock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
