Skip to main content

Safety Stock

Mantissa supports two types of safety stock: Base Safety Stock and Advanced Safety Stock. You can request safety stock via a POST request to the invocation endpoint, specifying in the invocationType parameter the type of safety stock you want to generate (safety-stock or adv-safety-stock). See more at Invoke Mantissa.

In Mantissa, when asking for safety stock computation you will receive always the estimated safety stock for each item in your inventory at level item. It is not possible to ask for safety stock at a different aggregation level.

warning

Safety stock computation is based on historical data for both sales orders and purchase orders. It is possible to compute safety stock only if the identifiers of the items sold (in the sales orders) are the same as the ones purchased (purchase orders).

Available safety stock types:

  • Base Safety Stock (safety-stock): computed based on historical data only;
  • Advanced Safety Stock (adv-safety-stock): exploits demand and lead time predictions.

Base Safety Stock

The base safety stock is computed based on statistical analysis of historical data and takes in consideration the ABC and XYZ classifications of the items in the inventory to determine the safety stock level as a basic formulation.

Advanced Safety Stock

The advanced safety stock is computed based on demand and lead time predictions and takes in consideration the ABC and XYZ classifications of the items in the inventory to determine the optimal safety stock level as an advanced formulation considering also the possible fluctuations in demand and lead time predictions.

Requesting a Safety Stock

To request a safety stock computation, you need to have a collection with historical data for sales orders and purchase orders on Mantissa. You can create a collection and upload your data following instructions in the Collection section.

Once you have uploaded your sales orders and purchase orders data, you can request a safety stock computation by sending a POST request to the invocation endpoint, with safety-stock or adv-safety-stock as invocationType. See more at Invoke Mantissa.

Safety stock invocations do not require any additional arguments.

Interpreting the Safety Stock Results

The results of a safety stock request will provide you with the estimated safety stock for each item in your inventory.

Here is provided an example for a Safety Stock.

Suppose you have three items in your inventory: item1, item2, and item3.

Example

The output, in json format, will be:

[
{
"ItemCode": "item1",
"SafetyStock": 50
},
{
"ItemCode": "item2",
"SafetyStock": 30
},
{
"ItemCode": "item3",
"SafetyStock": 20
}
]