stopCollectingRequests( )


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

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

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Stores - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
appIdstringRequired

ID of the app to stop accepting notification requests for.

Back in stock notifications only work for Wix Stores. The appId for Wix Stores is "215238eb-22a5-4c36-9e7b-e7c08025e04e".

Returns
Return Type:Promise<StopCollectingRequestsResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?