Skip to main content

unsubscribeByMarker

Unsubscribe from events on a product 🔐 This method requires authorization.

Events.unsubscribeByMarker(marker, userId, productId)

const value = await Events.unsubscribeByMarker('test_event', 1, 1)
Schema

marker:* string
Event marker
example: test_event

productId:* string
Product id
example: 14

langCode: string
Language code
example: en_US

threshold: number
Threshold value for comparing numerical value
example: 0

This method unsubscribes to the product event. Returns nothing if the unsubscription was successful.