> ## 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 a points product

> `Smile.fetchPointsProduct(id)`

<Danger>
  This method is deprecated and will be removed on August 1, 2026. Specify `includeSdk: true` when [initializing Smile UI](/ui/initializing), and then use the [`Smile.pointsProducts.getById()`](/js/resources/points-products/get-by-id) method from the JavaScript SDK instead.
</Danger>

This method retrieves a single points product by ID.

## Parameters

<ParamField path="id" type="integer" required>
  The unique identifier for the points product to be retrieved.
</ParamField>

## Returns

This method returns a `Promise` that:

* On success, resolves with a [points product](/ui/objects/points-product) object.
* On failure, resolves with an error object.

If the method is improperly invoked (e.g. missing required parameters), the `Promise` will be rejected.

<Panel>
  ```javascript JavaScript lines theme={null}
  Smile.fetchPointsProduct(38891).then(
    (pointsProduct) => {
      // Handle the points product object
    }
  );
  ```
</Panel>
