Skip to main content
JavaScript
Smile.fetchAllRewardFulfillments().then(
  (rewardFulfillments) => {
    // Handle the reward fulfillments
    // collection
  }
);
This method is deprecated. Specify includeSdk: true when initializing Smile UI, and then use the Smile.rewardFulfillments.get() method from the JavaScript SDK instead.
This method retrieves a list of all the reward fulfillments belonging to the currently logged-in customer.

Returns

This method returns a Promise that:
  • On success, resolves with an array of reward fulfillment objects.
  • On failure, resolves with an error object.
If the method is improperly invoked (e.g. invalid parameters, no customer currently logged-in), the Promise will be rejected.