> 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 # StopCollectingRequests # Package: backInStock # Namespace: BackInStockSettingsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/other-services/back-in-stock/back-in-stock-settings/stop-collecting-requests.md ## Permission Scopes: Manage Stores - all permissions: SCOPE.DC-STORES-MEGA.MANAGE-STORES ## Introduction Sets `settings.collectionStates.collectingRequests` to `false` for given `appId`. When the collection state is set to `false`, collecting notification requests is disabled. --- ## REST API ### Schema ``` Method: stopCollectingRequests Description: Sets `settings.collectionStates.collectingRequests` to `false` for given `appId`. When the collection state is set to `false`, collecting notification requests is disabled. URL: https://www.wixapis.com/v1/back-in-stock-notification-requests/settings/stop-collecting Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: appId Method parameters: param name: appId | type: appId | description: GUID of the app to stop accepting notification requests for. Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores). The `appId` for Wix Stores is `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`. | required: true Return type: StopCollectingRequestsResponse - name: settings | type: BackInStockSettings | description: Back in stock settings info. - name: collectionStates | type: array | description: Information about collecting customer requests to receive back in stock notifications. - name: appId | type: string | description: GUID of the app to receive notification requests for. Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores). The `appId` for Wix Stores is `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`. - name: collectingRequests | type: boolean | description: Whether to collect requests for items from this app. ``` ### Examples ### Stop collecting back in stock notification requests ```curl curl -X POST \ 'https://www.wixapis.com/back-in-stock-service/v1/back-in-stock-notification-requests/settings/stop-collecting' \ -H 'Content-type: application/json' \ -H 'Authorization: ' \ -d '{ "appId": "1380b703-ce81-ff05-f115-39571d94dfcd" }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.backInStock.BackInStockSettingsService.stopCollectingRequests(appId) Description: Sets `settings.collectionStates.collectingRequests` to `false` for given `appId`. When the collection state is set to `false`, collecting notification requests is disabled. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: appId Method parameters: param name: appId | type: string | description: GUID of the app to stop accepting notification requests for. Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores). The `appId` for Wix Stores is `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`. | required: true Return type: PROMISE - name: settings | type: BackInStockSettings | description: Back in stock settings info. - name: collectionStates | type: array | description: Information about collecting customer requests to receive back in stock notifications. - name: appId | type: string | description: GUID of the app to receive notification requests for. Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores). The `appId` for Wix Stores is `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`. - name: collectingRequests | type: boolean | description: Whether to collect requests for items from this app. ``` ### Examples ### stopCollectingRequests ```javascript import { backInStockSettings } from '@wix/ecom'; async function stopCollectingRequests(appId) { const response = await backInStockSettings.stopCollectingRequests(appId); }; ``` ### stopCollectingRequests (with elevated permissions) ```javascript import { backInStockSettings } from '@wix/ecom'; import { auth } from '@wix/essentials'; async function myStopCollectingRequestsMethod(appId) { const elevatedStopCollectingRequests = auth.elevate(backInStockSettings.stopCollectingRequests); const response = await elevatedStopCollectingRequests(appId); } ``` ### stopCollectingRequests (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { backInStockSettings } from '@wix/ecom'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { backInStockSettings }, // Include the auth strategy and host as relevant }); async function stopCollectingRequests(appId) { const response = await myWixClient.backInStockSettings.stopCollectingRequests(appId); }; ``` ---