This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves back in stock request settings.
function getSettings(): Promise<GetSettingsResponse>;
import { backInStockSettings } from "wix-ecom-backend";
async function getSettings() {
try {
const result = await backInStockSettings.getSettings();
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.