The Back in Stock implementation for Shopify (described here: https://help.klaviyo.com/hc/en-us/articles/360001895651-How-to-Install-Back-in-Stock-for-Shopify) doesn’t provide us with the level of customization that we would like to have. As such we are looking at implementing a custom Back in Stock form either via a legacy form method (similar to https://help.klaviyo.com/hc/en-us/articles/115005249588-How-to-Add-and-Customize-a-Legacy-Embedded-Signup-Form) or via a custom form and API request in the frontend (in JS).
This developer documentation for the API https://help.klaviyo.com/hc/en-us/articles/360006565332-Back-in-Stock-for-Mobile-App-Developers while not explicitly stated I believe is only for server side API calls as CORS blocks POST requests via JS.
Can anyone point me in the right direction here - add a user to back in stock list for a product via a custom form on the frontend, without need for server-side api calls. (or if there is no right direction - let me know!)
Best answer by julie.accardo
You do have the ability to make a front end API call to our Back in Stock endpoint. Below are a few screenshots from a PDF that we send to customers that are looking to set up a custom catalog. The only thing I am not 100% sure about would be whether you would need to set up a custom catalog or if you are good to pull the above data from the Shopify catalog.
Figured I’d give you a starting point!
Hope this helps!