Get customer product potential earnings

Returns how many points a logged-in shopper would earn by buying a product at a given price, with their VIP tier multiplier applied. Authenticate the shopper with the three X-Customer headers. For anonymous shoppers, use Get product potential earnings.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Your Yotpo store ID (app key).

Query Params
string
required

The product's ID in your ecommerce platform.

integer
required

The price to calculate points for, in cents of the store currency.

Headers
string
required

The shopper's email address.

string
required

SHA-256 hex digest of the shopper's email followed by your Loyalty API key, with no separator: sha256(email + api_key). Generate it on your server so the API key never reaches the browser.

string
required

The shopper's customer ID in your ecommerce platform (for example the Shopify customer ID). Must match the customer record.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json