> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: BackInStockNotifications ## Article: Introduction ## Article Link: https://dev.wix.com/docs/velo/apis/wix-ecom-backend/back-in-stock-notifications/introduction.md ## Article Content: --- title: Introduction --- # Introduction
Developer Preview
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.
  > **Note:** This module is > [universal](/api-overview/api-versions#universal-modules). > Functions in this module can run on both the backend and frontend, > unless specified otherwise. The Back In Stock Notifications API allows you to manage customer requests to receive notifications when out-of-stock items become available. With this API, you can: + Increase sales and customer satisfaction with personalized notifications. + Collect insights on requested items that are currently unavailable. + Effectively manage inventory and adjust restocking strategy. Learn more about [notifying customers when products are back in stock](https://support.wix.com/en/article/wix-stores-notifying-customers-when-products-are-back-in-stock). To use the Back In Stock Notifications API, import { backInStockNotifications } from the ‘wix-ecom-backend’ module: ``` javascript import { backInStockNotifications } from `wix-ecom-backend`; ``` ## Before you begin It’s important to note the following points before starting to code: + To start collecting back in stock requests, the `collectionStates` must be set to `true`. Use [`startCollectingRequests()`](/back-in-stock-settings/start-collecting-requests) to update collection states, or [update in a site’s dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Go%20to%20Back-in-Stock&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/store/back-in-stock). + For emails to send with the [`reportItemsBackInStock()`](/back-in-stock-notifications/report-items-back-in-stock) function, automations must be [activated in the site’s dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Go%20to%20Back-in-Stock&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/store/back-in-stock) first. + [Customize the design of the notification email](https://support.wix.com/en/article/wix-stores-notifying-customers-when-products-are-back-in-stock#customizing-the-notification-email) that will be sent. ## Terminology + **Notification request:** The object that is created when a customer wants to be notified when an out-of-stock item becomes available. The back in stock notification request contains information about the item and an email address to contact when it’s back in stock. ## Permissions information The following functions in Back In Stock Notifications API are restricted and only run if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function: + [`deleteBackInStockNotificationRequest()`](/back-in-stock-notifications/delete-back-in-stock-notification-request) + [`getBackInStockNotificationRequest()`](/back-in-stock-notifications/get-back-in-stock-notification-request) + [`getBackInStockNotificationRequestsCountByCatalogReferences()`](/back-in-stock-notifications/get-back-in-stock-notification-requests-count-by-catalog-references) + [`markAsNotificationSent()`](/back-in-stock-notifications/mark-as-notification-sent) + [`queryBackInStockNotificationRequests()`](/back-in-stock-notifications/query-back-in-stock-notification-requests) + [`reportItemsBackInStock()`](/back-in-stock-notifications/report-items-back-in-stock)

Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.