Hi
I need to run back in stock subscription in some of the products regardless of the stock availability. Can I run bellow script in my website. and add item to back in stock for custom use?
$.ajax({
type: "POST",
ur: "https://a.klaviyo.com/onsite/components/back-in-stock/subscribe",
data: {
a: "public-api",
email: "useremail@gmail.com",
variant: "55005964218416-variant-id",
platform: "shopify"
},
success: function(response){
console.log(response)
}
})
When I run this script in chrome dev tool (with actual data) it returns 404 (Not Found), what is the issue?
Best answer by Maxbuzz
View original