Search...
markAsNotificationSent( )
Developer Preview
Update BackInStockNotificationRequest status to NOTIFICATION_SENT
Syntax
function markAsNotificationSent(_id: string): Promise<MarkAsNotificationSentResponse>
markAsNotificationSent Parameters
NAME
TYPE
DESCRIPTION
_id
string
BackInStockNotificationRequest id
Returns
Return Type:
Promise<
MarkAsNotificationSentResponse
>NAME
TYPE
DESCRIPTION
request
BackInStockNotificationRequest
Updated BackInStockNotificationRequest
Was this helpful?
markAsNotificationSent example
Copy Code
1import { backInStockNotification } from 'wix-ecom.v2';23 async function markAsNotificationSent(id) {4 try {5 const result = await backInStockNotification.markAsNotificationSent(id);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13