Skip to main content
JavaScript
Smile.fetchAllPointsProducts().then(
  (pointsProducts) => {
    // Handle the points products collection
  }
);
This method is deprecated. Specify includeSdk: true when initializing Smile UI, and then use the Smile.pointsProducts.get() method from the JavaScript SDK instead.
This method retrieves a list of many points products.

Returns

This method returns a Promise that:
  • On success, resolves with an array of points product objects. If no points products are defined, the array will be empty.
  • On failure, resolves with an error object.
If the method is improperly invoked (e.g. invalid parameters), the Promise will be rejected.