- DATE:
- AUTHOR:
- The Toast - API team
Stock API and webhook improvements
Several improvements and updates have been made to the stock API and the stock webhook.
New identifier values in stock API and stock webhook payload
The stock API and stock webhook payloads include two additional identifiers:
multiLocationIdis a consistent identifier that applies to all versions of a menu item that is shared across locations. Toast support recommends using themultiLocationIdinstead of a menu itemguid, when submitting requests to Toast APIs. For more information, see Toast identifiers.versionIdhas been added for future use.
Stock API search endpoint accepts multi-location IDs or GUIDs
When making a request to the /inventory/search endpoint, the message body you submit can now contain either multi-location IDs or GUIDs to identify the menu items you want to retrieve inventory information for. For more information, see Getting stock information using the stock API.
New stock API endpoint to update inventory information
The stock API has a new /inventory/update endpoint that you can use to update inventory information for menu items or modifiers. You can set one of the following status values for a menu item or modifier:
IN_STOCKOUT_OF_STOCKQUANTITY- If you set an item status toQUANTITY, you must also provide aquantityvalue with double data type. For example, you can set thequantityto0.5,7.0, or10.75.
For more information, see Updating stock.