Search.../

stopCollectingRequests( )

Developer Preview

Sets settings.collectionStates.collectingRequests to false for given appId.

Description

When the collection state is set to false, collecting notification requests is disabled.

Syntax

function stopCollectingRequests(appId: string): Promise<StopCollectingRequestsResponse>

stopCollectingRequests Parameters

NAME
TYPE
DESCRIPTION
appId
string

ID of the app to stop accepting notification requests for.

Returns

Return Type:

Promise<
StopCollectingRequestsResponse
>
NAME
TYPE
DESCRIPTION
settings
BackInStockSettings

Back in stock settings info.

Was this helpful?

stopCollectingRequests example

Copy Code
1import { backInStockSettings } from 'wix-ecom-backend';
2
3 async function stopCollectingRequests(appId) {
4 try {
5 const result = await backInStockSettings.stopCollectingRequests(appId);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13