---
updatedAt: 2026-10-29T11:54:48.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Show loyalty points on a product page

```shell Shell
# Points for each variant, from its price in cents. Public endpoint, no token.
curl -X POST "https://storefront.yotpo.com/loyalty/v3/stores/YOUR_STORE_ID/product_potential_points" \
  -H "Content-Type: application/json" \
  -d '{
    "product_potential_points": {
      "product_id": 1000000001,
      "variants": [
        { "id": 2000000001, "price": 3000 },
        { "id": 2000000002, "price": 4500 }
      ]
    }
  }'
```

```json Response Example
{
  "product_potential_points": {
    "variants_with_points": [
      { "id": 2000000001, "price": 3000, "points": 3 },
      { "id": 2000000002, "price": 4500, "points": 5 }
    ]
  }
}
```

# Send the product's variants

<!-- shell@1-11 -->

The endpoint is on `storefront.yotpo.com`, not developers.yotpo.com, and needs only the merchant's store ID in the path, so you can call it from browser code. Wrap the fields in `product_potential_points`. `product_id` and `variants` are required: send the product's ID from the merchant's eCommerce platform, and each variant's `id` and `price` in cents. Without `product_id`, the call returns `400` with `Missing body parameter 'product_potential_points.product_id'`. Add `collection_ids`, `product_tags` or `product_type` when the merchant's earning rules depend on them.

# Show the points

The response repeats each variant with the `points` a shopper would earn for buying it, based on the store's earning rules (the example store earns 1 point per $10). Show the value for the selected variant, for example "Earn 3 points", and update it when the shopper picks another variant.

For points that include a signed-in shopper's VIP tier multiplier, use [Authenticated Product Potential Points](https://docs.yotpo.com/reference/get-customer-product-potential-points). It needs a customer token built from the merchant's Loyalty API key, so it runs on your server.