> ## 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.

# Get a points product

> `Smile.pointsProducts.getById(id)`

This async method retrieves a single points product by ID. This method always makes an API call to fetch the latest data.

## 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 object](/js/resources/points-products/object).
* On failure, rejects with an [error object](/js/concepts/error-handling).

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

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