Skip to main content
JavaScript
Smile.customerPointsWallet.preloaded();
This method retrieves the preloaded customer points wallet from the cache, without making an API call. Refer to preloading resources to learn how to refresh the value.
For this method to return a value, the customer points wallet must first be preloaded. If you want to retrieve live values from the API, use the Smile.customerPointsWallet.get() method instead.

Returns

This method returns a customer points wallet object. If the customer’s points wallet has not been preloaded, null is returned.