Search...
getBackInStockNotificationRequestsCountByCatalogReferences( )
Developer Preview
Retrieves the amount of back in stock requests for a given catalogReference
item.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences: Array<CatalogReference>): Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse>
getBackInStockNotificationRequestsCountByCatalogReferences Parameters
NAME
TYPE
DESCRIPTION
catalogReferences
Array<
CatalogReference
>catalogReference
items to retrieve the notification request for.
Returns
Return Type:
Promise<
GetBackInStockNotificationRequestsCountByCatalogReferencesResponse
>NAME
TYPE
DESCRIPTION
countsPerCatalogReference
Array<
BackInStockNotificationRequestsCount
>Amount of back in stock notifications for each of the retrieved catalogReference
items.
Was this helpful?
getBackInStockNotificationRequestsCountByCatalogReferences example
Copy Code
1import { backInStockNotifications } from 'wix-ecom-backend';23 async function getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences) {4 try {5 const result = await backInStockNotifications.getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13