Loyalty.lt API Reference
Welcome to the comprehensive Loyalty.lt API documentation. Our REST API enables you to integrate loyalty programs, manage customer relationships, and build powerful e-commerce experiences.Interactive Documentation: All API endpoints below are automatically generated from our OpenAPI specification. You can test endpoints directly in your browser with real API responses.
API Overview
The Loyalty.lt API is organized into three main service layers, each designed for specific use cases and integration patterns:Shop Integration APIs
Direct integration endpoints for e-commerce platforms, POS systems, and customer-facing applications. Primary Use Cases:- E-commerce platform integration (WooCommerce, Shopify, custom stores)
- POS system connectivity
- Mobile app backends
- Customer loyalty portals
- Phone + OTP authentication flow
- Loyalty card management
- Points earning and redemption
- Offers and coupons system
- Interactive games and gamification
- Transaction history and analytics
- XML import for data migration
/{locale}/shop/
Partner APIs
Management endpoints for loyalty program partners, agencies, and multi-store operations. Primary Use Cases:- Partner dashboard management
- Multi-store loyalty programs
- White-label solutions
- Agency client management
- Enterprise analytics and reporting
- Partner authentication and management
- Store and location management
- Staff and permissions system
- Advanced analytics and reporting
- White-label customization
- Bulk operations and data export
/{locale}/partners/
Base URLs
Environment | URL | Description |
---|---|---|
Staging | https://staging-api.loyalty.lt | Development and testing |
Production | https://api.loyalty.lt | Live production environment |
en
, lt
) in the URL path.
Authentication Methods
Server-side authentication for backend integrations:Use for:
- E-commerce platform integrations
- Server-to-server communication
- Automated systems and cron jobs
Rate Limits
Authentication Type | Requests/Hour | Burst Limit | Notes |
---|---|---|---|
API Credentials | 2,000 | 100/min | Higher limits for enterprise |
JWT Tokens | 1,000 | 60/min | Per user session |
Partner APIs | 5,000 | 200/min | Advanced partner features |
Rate limits are automatically managed. Use bulk endpoints for high-volume operations to optimize performance.
Response Format
All API endpoints return consistent JSON responses:HTTP Status Codes
Code | Meaning | Usage |
---|---|---|
200 | OK | Successful GET, PUT, PATCH |
201 | Created | Successful POST (resource created) |
400 | Bad Request | Validation errors, malformed requests |
401 | Unauthorized | Missing or invalid authentication |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource doesn’t exist |
422 | Unprocessable Entity | Business logic validation failed |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side errors (rare) |
Pagination
List endpoints use consistent pagination:page
- Page number (default: 1)per_page
- Items per page (default: 15, max: 50)
Filtering and Sorting
Most list endpoints support filtering and sorting:Webhooks
Real-time event notifications for critical activities: Available Events:customer.registered
- New customer registrationpoints.awarded
- Points added to accountcoupon.redeemed
- Coupon usagegame.completed
- Game session finishedcard.created
- New loyalty card
Available SDKs
JavaScript/TypeScript
Python
PHP
Getting Started
1
Get API Credentials
- Sign up for a Partner account at partners.loyalty.lt
- Navigate to API Settings
- Generate your API credentials
2
Choose Your Integration
- Shop APIs: For direct e-commerce integration
- Partner APIs: For multi-store management
3
Test Authentication
4
Explore Endpoints
Use the interactive documentation below to test API endpoints and understand responses.
Support Resources
Help Center
Comprehensive guides and tutorials
Partner Dashboard
Manage your integration and view analytics
Status Page
Real-time API status and incident reports
Contact Support
Get help from our technical team
Interactive API Explorer: The sections below provide automatically generated, interactive documentation for all available endpoints. You can test requests directly and see real responses.