Skip to main content
JavaScript
Smile.pointsProducts.getById(38891).then(
  (pointsProduct) => {
    // Handle the points product object
  }
);
This async method retrieves a single points product by ID. This method always makes an API call to fetch the latest data.

Parameters

id
integer
required
The unique identifier for the points product to be retrieved.

Returns

This method returns a Promise that: If the method is improperly invoked (e.g. missing required parameters), the Promise will be rejected.