Skip to main content
JavaScript
Smile.customerPointsWallet.get().then(
  (customerPointsWallet) => {
    // Handle the customer points
    // wallet object
  }
);
This async method retrieves the points wallet of the currently logged-in customer. This method always makes an API call to fetch the latest data.
For the best performance, we suggest preloading the customer’s points wallet and then using the Smile.customerPointsWallet.preloaded() method.

Returns

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