API Documentation

5 articles
Pro only

API access requires Pro plan. Generate token in Dashboard then API.

Base URL

https://loyalto.app/api

Authentication

X-API-Token: your_token_here

Endpoints

GET /api/cards.php

List all loyalty cards.

POST /api/scan.php

Issue stamps.

{"qr_token": "token", "qty": 1}

POST /api/redeem.php

Redeem a reward.

{"enrollment_id": 123, "qty": 1}

GET /api/recent.php

Recent transactions.

Example

curl -X POST https://loyalto.app/api/scan.php -H "X-API-Token: token" -d '{"qr_token":"abc","qty":1}'