Search...
getBackInStockNotificationRequestsCountByCatalogReferences( )
Developer Preview
Returns the number of BackInStockNotificationRequests for a given CatalogReferences.
Syntax
function getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences: Array<CatalogReference>): Promise<GetBackInStockNotificationRequestsCountByCatalogReferencesResponse>
getBackInStockNotificationRequestsCountByCatalogReferences Parameters
NAME
TYPE
DESCRIPTION
catalogReferences
Array<
CatalogReference
>Back in stock requests to be counted identified by their CatalogReference.
Returns
Return Type:
Promise<
GetBackInStockNotificationRequestsCountByCatalogReferencesResponse
>NAME
TYPE
DESCRIPTION
countsPerCatalogReference
Array<
BackInStockNotificationRequestsCount
>The number of back in stock notifications for each of the catalog references requested.
Was this helpful?
getBackInStockNotificationRequestsCountByCatalogReferences example
Copy Code
1import { backInStockNotification } from 'wix-ecom.v2';23 async function getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences) {4 try {5 const result = await backInStockNotification.getBackInStockNotificationRequestsCountByCatalogReferences(catalogReferences);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13