Frequently Asked Questions
Find answers to common questions about integrating and using the Loyalty.lt loyalty program platform.General Questions
What is Loyalty.lt and how does it work?
What is Loyalty.lt and how does it work?
- Points System: Customers earn points for purchases, reviews, referrals, and other activities
- Tier Management: Customers progress through tiers (Bronze, Silver, Gold, Platinum) with increasing benefits
- Rewards & Offers: Customers can redeem points for discounts, free products, or special offers
- Gamification: Interactive games and challenges to boost engagement
- Digital Cards: QR code-based loyalty cards for easy identification
Which platforms and frameworks are supported?
Which platforms and frameworks are supported?
- PHP 7.4+ (Laravel, Symfony, CodeIgniter, Pure PHP)
- Python 3.7+ (Django, Flask, FastAPI)
- Node.js (Express, NestJS, Next.js)
- JavaScript (Vanilla, React, Angular)
- Vue.js 3.x (with Nuxt.js support)
- TypeScript support across all SDKs
- WooCommerce (WordPress)
- Shopify
- PrestaShop
- Magento (via API)
- Custom e-commerce solutions
- React Native
- iOS (Swift)
- Android (Kotlin/Java)
What are the different API types and when should I use each?
What are the different API types and when should I use each?
- Use Case: Direct integration with your e-commerce store
- Authentication: API credentials (shop-specific)
- Features: Customer management, points, loyalty cards, offers
- Best For: Single store owners, direct integrations
- Use Case: Managing multiple shops, white-label solutions
- Authentication: JWT tokens with partner permissions
- Features: Multi-shop management, analytics, bulk operations
- Best For: Agencies, SaaS providers, enterprise partners
- Use Case: Embedded widgets, mobile apps, custom UIs
- Authentication: API credentials + customer context
- Features: Customer-facing functionality, games, redemptions
- Best For: Custom applications, mobile apps, embedded solutions
How much does Loyalty.lt cost?
How much does Loyalty.lt cost?
- Starter: Free for up to 1,000 customers
- Professional: Usage-based pricing for growing businesses
- Enterprise: Custom pricing for large-scale implementations
- Number of active customers
- API calls per month
- Advanced features usage
- Support level required
Integration Questions
How do I get started with integration?
How do I get started with integration?
- Sign up: Create an account at partners.loyalty.lt
- Get credentials: Generate your API key and shop ID
-
Choose integration method:
- Use our SDKs for quick setup
- Direct API calls for custom implementations
- E-commerce plugins for platforms like WooCommerce
- Test in staging: Always test in our staging environment first
- Go live: Switch to production when ready
What's the difference between staging and production environments?
What's the difference between staging and production environments?
- Purpose: Testing and development
- URL:
https://staging-api.loyalty.lt
- Data: Test data only, reset periodically
- Limitations: Rate limiting, some features may be disabled
- Usage: Safe for testing, won’t affect real customers
- Purpose: Live customer data and transactions
- URL:
https://api.loyalty.lt
- Data: Real customer data, permanent storage
- Performance: Full performance, all features enabled
- Usage: Only use when ready for live customers
How do I migrate from staging to production?
How do I migrate from staging to production?
-
Update environment variables:
- Update API endpoints in your code if hardcoded
- Test thoroughly in staging first
- Export/import data if needed (contact support for assistance)
- Monitor closely after deployment
Can I test with real customer data?
Can I test with real customer data?
- Create test customers with fake emails
- Use realistic but fictional data
- Test all scenarios with dummy data
- Use our testing tools and mock clients
- Start with a small group of real customers
- Use feature flags to gradually roll out
- Monitor error rates and performance
- Have a rollback plan ready
Technical Questions
What authentication methods are supported?
What authentication methods are supported?
- Used for third-party app integrations
- Requires approval from Loyalty.lt team
- Supports various grant types
- Never expose API keys in client-side code
- Use environment variables for credentials
- Rotate keys regularly
- Monitor API usage for anomalies
How do rate limits work?
How do rate limits work?
- Shop API: 1,000 requests per hour per shop
- Partner API: 5,000 requests per hour per partner
- SDK API: 10,000 requests per hour per shop
- HTTP 429 status code returned
- Retry after time provided in response
- Implement exponential backoff in your code
- Contact support for higher limits
- Enterprise plans include higher limits
- Bulk operations use separate limits
How should I handle API errors?
How should I handle API errors?
200
: Success400
: Bad Request (validation errors)401
: Unauthorized (invalid credentials)403
: Forbidden (insufficient permissions)404
: Not Found (resource doesn’t exist)409
: Conflict (duplicate data)429
: Rate Limited500
: Server Error
- Always check HTTP status codes
- Parse error messages for user feedback
- Implement retry logic for transient errors
- Log errors for debugging
- Provide fallback behavior when possible
What data formats are supported?
What data formats are supported?
- Primary: JSON (application/json)
- Webhooks: JSON payload with signature verification
- Exports: CSV, JSON, Excel formats
- ISO 8601:
2024-01-15T10:30:00Z
- Date only:
2024-01-15
- Timezone: UTC recommended, local timezone supported
- ISO 4217 currency codes (USD, EUR, GBP, etc.)
- Decimal precision: 2 decimal places
- Format: Numeric (not string with symbols)
Common Issues
Why am I getting 'Invalid API credentials' errors?
Why am I getting 'Invalid API credentials' errors?
- Check if keys were recently regenerated
- Verify account is active and in good standing
- Contact support if keys appear corrupted
- Test credentials in our API explorer
- Check for typos in key/ID
- Verify environment URLs
- Test with curl to isolate SDK issues
Points aren't being awarded to customers. What's wrong?
Points aren't being awarded to customers. What's wrong?
- Check if points earning is enabled for your shop
- Verify minimum order amounts
- Review earning rate settings
- Check API response for error details
- Verify customer ID format and existence
- Test with a known working customer
- Review shop settings in Partners Portal
Webhooks aren't working. How do I fix them?
Webhooks aren't working. How do I fix them?
- Must be publicly accessible HTTPS URL
- Should return 200 status code for valid requests
- Test URL manually with tools like curl or Postman
- Check webhook logs in Partners Portal
- Verify HTTPS certificate is valid
- Test with ngrok for local development
- Monitor server logs for errors
- Use webhook testing tools
My integration is slow. How can I improve performance?
My integration is slow. How can I improve performance?
- Use HTTP/2 when available
- Implement connection pooling
- Reduce payload sizes
- Batch related operations
- Index customer lookup fields
- Cache frequently accessed data
- Use read replicas for queries
E-commerce Specific
How do I integrate with WooCommerce?
How do I integrate with WooCommerce?
- Download from WordPress Plugin Directory
- Easy setup through admin interface
- Automatic point calculation and redemption
- Built-in customer synchronization
- Install and activate the plugin
- Configure API credentials
- Set point earning rules
- Configure redemption options
- Test with a small order
- Ensure customer accounts are linked properly
- Check point calculation rules
- Verify webhook endpoints are working
- Test redemption flow thoroughly
Can customers use points across multiple stores?
Can customers use points across multiple stores?
- Points earned at any partner store
- Can be redeemed at any partner store
- Unified customer profiles across stores
- Centralized tier progression
- Single login across all stores
- Combined points balance
- Tier benefits at all locations
- Unified transaction history
- Use Partner API for multi-store setups
- Implement customer SSO if needed
- Configure store-specific earning rates
- Set up cross-store redemption rules
How do I handle refunds and returns?
How do I handle refunds and returns?
- Deduct points immediately upon refund
- Handle insufficient point scenarios gracefully
- Maintain detailed refund logs
- Consider grace periods for accidental purchases
- Communicate point changes to customers
- Allow negative point balances
- Set maximum refund timeframes
- Configure automatic vs manual point adjustments
Mobile & SDK Questions
How do I implement QR code scanning for loyalty cards?
How do I implement QR code scanning for loyalty cards?
- iOS: Use AVFoundation for camera access
- Android: Use Camera2 API or CameraX
- Consider using existing QR libraries like ZXing
- Contains encrypted customer ID and validation data
- Includes expiration timestamp
- Has built-in error correction
Can I customize the loyalty widget appearance?
Can I customize the loyalty widget appearance?
- Colors and branding
- Font styles and sizes
- Layout and positioning
- Button styles and text
- Animation effects
- Responsive behavior
How do I handle offline scenarios in mobile apps?
How do I handle offline scenarios in mobile apps?
- Cache essential data for offline viewing
- Queue actions for later sync
- Show clear offline indicators
- Handle conflicts gracefully
- Implement retry mechanisms
Support & Contact
How do I get technical support?
How do I get technical support?
- Comprehensive guides at docs.loyalty.lt
- API reference and examples
- Video tutorials and webinars
- Community-contributed content
- Email: dev-support@loyalty.lt
- Response Time: 24-48 hours for technical issues
- Include: Error messages, API responses, code snippets
- Priority: Critical issues get faster response
- URL: community.loyalty.lt
- Features: Q&A, code sharing, feature requests
- Monitoring: Developer team actively participates
- Search: Check existing posts before asking
- Available during business hours
- Direct access to technical team
- Screen sharing for complex issues
- Available for paid plans
- SDK-specific issues
- Bug reports with reproducible examples
- Feature requests for SDKs
- Community contributions welcome
- Provide clear error messages
- Include relevant code snippets
- Specify environment (staging/production)
- Share API request/response details
- Mention your integration platform
Where can I find code examples and tutorials?
Where can I find code examples and tutorials?
-
Documentation Examples
- Each API endpoint includes working examples
- SDK guides with complete code samples
- Integration tutorials for popular platforms
-
GitHub Repositories
- github.com/loyalty-lt/examples
- Platform-specific example projects
- Complete working applications
- Community contributions
-
Video Tutorials
- YouTube channel: Loyalty.lt Developers
- Step-by-step integration guides
- Best practices webinars
- Live coding sessions
-
Blog Posts
- Medium: @loyalty-lt
- Dev.to: loyalty-lt
- Community tutorials and tips
-
Stack Overflow
- Tag: loyalty-lt
- Search existing questions
- Post new questions with tag
-
Discord Community
- Real-time developer chat
- Code sharing and collaboration
- Direct access to team members
- E-commerce integrations
- Mobile app examples
- Widget implementations
- Advanced use cases
How do I report bugs or request features?
How do I report bugs or request features?
-
GitHub Issues (Preferred for SDK bugs)
- Repository-specific issues
- Use provided bug report template
- Include reproduction steps
- Attach relevant logs/screenshots
-
Support Email: bugs@loyalty.lt
- API-related bugs
- Platform-specific issues
- Security-related concerns
-
Community Forum
- Vote on existing requests
- Propose new features
- Discuss implementation details
-
Partners Portal
- Feature request form
- Business impact description
- Use case examples
- Clear description of expected vs actual behavior
- Steps to reproduce the issue
- Environment details (OS, framework versions)
- Error messages and logs
- Code snippets if relevant
- Use case description
- Business value/impact
- Proposed implementation
- Examples from other platforms
- Willingness to contribute/test
- Bugs: Acknowledged within 24-48 hours
- Features: Initial response within 1 week
- Critical Issues: Immediate attention
- Updates: Regular status updates provided