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';
2
3 async function markAsNotificationSent(id) {
4 try {
5 const result = await backInStockNotification.markAsNotificationSent(id);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13