This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets status
of a back in stock request to NOTIFICATION_SENT
.
Use this function if the notification is sent manually offline. If the notification is sent automatically or with the reportItemsBackInStock()
function, then status
updates on its own.
function markAsNotificationSent(
_id: string,
): Promise<MarkAsNotificationSentResponse>;
ID of the notification request to mark.
import { backInStockNotifications } from "@wix/ecom";
async function markAsNotificationSent(id) {
const response = await backInStockNotifications.markAsNotificationSent(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.