The Publick Back in Stock Subscribtion api Endpoints Used To Handle Back in stock Subscribtion Functions in Store like Stock Subscribe or Get customer subscribtions or delete customer product back in Stock Subscribtion .This APi Endpoints Used Only When Product Stock Is out Use If Condition To Know if the stock is out of product or not
There Are Three Api Endpoint:1.
Subscribe to back in stock subscription:This Api Used To Make Customer Subscribe to Back in stock subscribtions List So If the Stock back in then he will notify about that.
This Endpoint Need only product id as paramter So The prefer Way to Used is with product details Form .
You cannot Make Customer subscribe in many back in stock You must make loop for that also The subscribe won't work if the stock not out So you must check if the stock is out or not.
2.
Get Customer Subscribtions:This Api Is used To Get All Customer product Subscribtions You Can Used To Get All Customer Subscribtions.
The Best Way To Get All Customer subscribtions is customer profile So You Create Page To disply all Customer product Subscribtions to make customer delete any product subscription from list.
This Endpoint Need Only customer id as parameter So the prefer way To handle it is Customer Profile.
You Can Not Get Subscribtions for multi customers To do that You must make loop for that.
3.
opt out from back in stock:This Api endpoint Used To remove customer product subscribtion from list .
The Best Way To Used is after Get customer subscribtions list So You make vendor select one or multi product to remove it.
This Api Need single or multi Subscribtion ids with list Type So You Remove multi subscribtion in one time with out used loop.
the second parameter is PrepareCustomerSubscriptions as Boolean Type To perpare customer subscribtions.
You must split every subscribtion id by commo ',' character