> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Load all customer points products

> `Smile.fetchAllCustomerPointsProducts()`

> [!CAUTION]
>
> This method has been removed. Specify `includeSdk: true` when [initializing Smile UI](https://dev.smile.io/ui/initializing.md), and then use the [`Smile.customerPointsProducts.get()`](https://dev.smile.io/js/resources/customer-points-products/get) method from the JavaScript SDK instead.

This method retrieves a list of available redemption options for the currently logged-in customer.

## Returns

This method returns a `Promise` that:

* On success, resolves with an array of [customer points product](https://dev.smile.io/ui/objects/customer-points-product.md) 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) or no customer is currently logged-in, the `Promise` will be rejected.

```javascript JavaScript lines theme={null}
Smile.fetchAllCustomerPointsProducts().then(
  (pointsProducts) => {
    // Handle the customer points products
    // collection
  }
);
```
