Skip to main content
JavaScript
Smile.fetchPointsProduct(38891).then(
  (pointsProduct) => {
    // Handle the points product object
  }
);
This method is deprecated. Specify includeSdk: true when initializing Smile UI, and then use the Smile.pointsProducts.getById() method from the JavaScript SDK instead.
This method retrieves a single points product by ID.

Parameters

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

Returns

This method returns a Promise that:
  • On success, resolves with a 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.