API and embed docs
Generate a key in one click from your dashboard, then embed a badge or call the API. Available during the free trial and on Growth and Scale.
1. Get a key
Log in, open API and embed, press Generate API key. The secret is shown once. Revoke it any time.
2. Embed the badge
<script src="https://ecommloyal.com/api/v1/embed.js?pk=YOUR_PUBLIC_KEY"></script>
3. Look up a balance
GET https://ecommloyal.com/api/v1/balance?email=shopper@example.com
Authorization: Bearer sk_...
Returns email, points_balance, lifetime_points and a notice line. Errors: 401 invalid_key, 403 plan_does_not_include_api, 404 member_not_found.
4. Program details
GET https://ecommloyal.com/api/v1/program?pk=YOUR_PUBLIC_KEY
API and integration notice. One-click integrations depend on third-party providers. Uptime, rate limits and data handling for those services are outside our control. Keep your keys secret and rotate them if exposed.
Service level and data notice. We aim for high availability but give no uptime guarantee on Free and Growth plans. Data is processed in the region shown in your account. You stay responsible for lawful use of customer data.
Read all disclaimers