Loyalty.lt SDKs
Official SDKs for integrating with the Loyalty.lt Shop API. Choose your preferred language:JavaScript / TypeScript
Full-featured SDK with React components. Perfect for web apps, Node.js backends, and POS systems.
PHP
Native PHP SDK for Laravel, Symfony, and custom PHP applications.
Python
Python SDK for Django, Flask, FastAPI, and data processing pipelines.
Features
All SDKs provide access to:QR Login
QR Login
Allow customers to authenticate on your website or POS by scanning a QR code with their Loyalty.lt mobile app.
QR Card Scan
QR Card Scan
Identify customers at POS terminals. Display a QR code, customer scans it, and you receive their loyalty card data instantly.
Points & Transactions
Points & Transactions
Award points for purchases, deduct points for redemptions, and track transaction history.
Offers Management
Offers Management
Create, update, and manage promotional offers. Import offers from XML feeds.
Real-time Updates
Real-time Updates
Use Ably WebSocket integration for instant notifications when customers scan QR codes.
Quick Comparison
| Feature | JavaScript | PHP | Python |
|---|---|---|---|
| QR Login | Yes | Yes | Yes |
| QR Card Scan | Yes | Yes | Yes |
| Transactions | Yes | Yes | Yes |
| Offers | Yes | Yes | Yes |
| XML Import | Yes | Yes | Yes |
| React Components | Yes | - | - |
| TypeScript | Yes | - | Yes (types) |
Authentication
All SDKs use API credentials:API Environments
| Environment | Base URL |
|---|---|
| Production | https://api.loyalty.lt |
| Staging | https://staging-api.loyalty.lt |