Skip to main content
JavaScript
Smile.referralSettings.get().then(
  (referralSettings) => {
    if (referralSettings) {
      // Handle the referral settings object
    } else {
      // No active referral program
    }
  }
);
This async method retrieves the configuration for the account’s referral program. This method always makes an API call to fetch the latest data.
For the best performance, we suggest preloading referral settings and then using the Smile.referralSettings.preloaded() method.

Returns

This method returns a Promise that: If the method is improperly invoked, the Promise will be rejected.