Last updated

fetchSettings()

Fetches settings from the API.

Signature

const settings = await window.FairShareSDK.fetchSettings();

Returns

Promise<Settings> — Settings object from the API.

Example

// Fetch fresh settings from API
const settings = await window.FairShareSDK.fetchSettings();

console.log('Shop name:', settings.shop.name);
console.log('Currency:', settings.currency);