Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.loyaltylion.com/llms.txt

Use this file to discover all available pages before exploring further.

Available on the Advanced plan and above.
Display the logged in customer’s points on the page using customer points component. Whenever we find this component on the page, we’ll set its innerHTML to the requested value. If there is no logged in customer, or the current customer has been blocked from the program, all values are 0.

Total points

Total points present the sum of customer’s approved and pending points
<span data-lion-points></span>

Approved points

Approved points present customer’s redeemable points that can be used to claim reward
<span data-lion-points="approved"></span>

Pending points

Pending points shows customer’s points that are yet to be approved. Points get approved automatically after the approval period passes or manually.
<span data-lion-points="pending"></span>

Spent points

This components shows points that customer has spent in the program until now.
<span data-lion-points="spent"></span>

Lifetime points

Lifetime points components shows the sum of customer’s approved, pending, spent and expired points.
<span data-lion-points="lifetime"></span>