getSettings( )


Developer Preview

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.

Method Declaration
Copy
function getSettings(): Promise<GetSettingsResponse>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GetSettingsResponse>
JavaScript
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 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?