Stock overview

The stock webhook and stock API provide inventory information for menu items and modifiers. This inventory information includes the stock status of the menu item or modifier (in stock, out of stock, or low quantity). Depending on the stock status, the webhook payload or API response may also include the quantity of the menu item or modifier.

With the stock webhook, the Toast platform pushes updates to your system when the stock status of a menu item or modifier changes. This is the preferred method for getting information about changes to a menu item or modifier's inventory.

With the stock API, you can retrieve a list of menu items that are out of stock, in limited supply, or both. You can also submit a list of menu items or modifiers to the stock API and it returns their current stock status and quantities.

In addition, the stock API gives you the ability to update inventory information for menu items and modifiers.

To use the stock API, your API account must have one of the following scopes:

  • To retrieve inventory information, your API account must have the stock:read scope.

  • To update inventory information, your account must have the stock:write scope.

Stock updates do not represent changes to the menu itself. Updating the menu and consuming stock updates should occur in separate processes. Only retrieve a new menu when the menus webhook has sent a message that the menu is outdated, or a request to the /metadata endpoint of the menus API indicates that the menu JSON is outdated. For more information about when to retrieve a new menu, see Determining if a restaurant's menu data has gone stale.

Note

Modifiers are supported by an underlying menu item, called the modifier's item reference. Therefore, in this section, the term menu item is used to generically refer to both standalone menu items and modifier item references, because the same data is returned for both entities. For detailed information on modifier item references, see Understanding a modifier option's item reference.

Note

Scheduled future orders decrement quantity-based stock count immediately upon order placement. In the following example, a restaurant location has ten cookies in stock on Monday. If a guest places a catering order on Monday to be fulfilled on Friday and this order includes a cookie, the cookie stock count will decrement to nine on Monday (not on Friday). For more information about scheduling future orders, see Scheduling future orders.