Search...
getBackInStockNotificationRequest( )
Developer Preview
Get BackInStockNotificationRequest by id
Syntax
function getBackInStockNotificationRequest(_id: string): Promise<BackInStockNotificationRequest>
getBackInStockNotificationRequest Parameters
NAME
TYPE
DESCRIPTION
_id
string
BackInStockNotificationRequest id
Returns
Requested BackInStockNotificationRequest
Return Type:
Promise<
BackInStockNotificationRequest
>NAME
TYPE
DESCRIPTION
_createdDate
Date
Order creation date and time.
_id
string
Request id (autogenerated upon creation)
autoNotified
boolean
Describes how notification was made: automatically or manually by store owner
catalogReference
CatalogReference
Item identifier
contactId
string
Contact id (autogenerated upon creation) which is associated with given email. Will receive all notifications
email
string
Email that will receive notification about item being back in stock
itemUrl
string
override default item url returned from the implementer
status
string
Request status
Was this helpful?
getBackInStockNotificationRequest example
Copy Code
1import { backInStockNotification } from 'wix-ecom.v2';23 async function getBackInStockNotificationRequest(id) {4 try {5 const result = await backInStockNotification.getBackInStockNotificationRequest(id);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13