This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sends notifications for back in stock requests.
Important: Automations must be turned on in a site's dashboard for notifications to send.
This endpoint triggers notifications for requests in 1 of 2 ways:
catalogReference information.requestIds.itemDetails are required and may populate dynamic values in the notification template, as follows:
itemDetails.name passes to the template as item.nameitemDetails.price passes to the template as item.priceitemDetails.image.url passes to the template as item.image.urlIf the notification template doesn't include item.price, item.name, or item.image.url, values should
be passed in extraAutomationTemplateParameters.
After this endpoint is called, the status for the request will update to NOTIFICATION_SENT if it sends
successfully, or to FAILED if it fails to send.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Item details to use in notifications.
itemDetails may populate dynamic valyes in the notification template, as follows:
itemDetails.name passes to the template as item.nameitemDetails.price passes to the template as item.priceitemDetails.image.url passes to the template as item.image.urlUse extraAutomationTemplateParameters to pass additional dynamic values.
Report options.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.