Loyalty APIs for Developers
Build custom loyalty solutions with our comprehensive RESTful APIs. Complete with SDKs, webhooks, and extensive documentation for seamless integration.
// Create a new loyalty member
const member = await loyaltyMatch.members.create({
email: "customer@example.com",
firstName: "John",
lastName: "Doe",
phoneNumber: "+1234567890"
});
// Award points for a purchase
await loyaltyMatch.transactions.create({
memberId: member.id,
amount: 99.99,
points: 100,
type: "purchase"
});
// Check member status
const status = await loyaltyMatch.members.getStatus(member.id);
console.log(`Points: ${status.points}, Tier: ${status.tier}`);
Comprehensive API Suite
Everything developers need to build powerful loyalty solutions
RESTful API
Clean, intuitive REST endpoints with JSON responses. Rate limiting, authentication, and comprehensive error handling.
SDKs & Libraries
Official SDKs for JavaScript, Python, PHP, Ruby, and .NET with comprehensive examples and type definitions.
Webhooks
Real-time event notifications for member actions, point changes, tier upgrades, and reward redemptions.
Interactive Documentation
OpenAPI 3.0 specification with interactive testing, code examples, and comprehensive guides.
Core API Endpoints
Essential endpoints for building loyalty functionality
Members API
Manage customer profiles and membership data
Points & Transactions
Award, redeem, and track loyalty points
Rewards & Redemptions
Manage reward catalog and redemptions
Analytics & Reporting
Access loyalty program metrics and insights
// Create a new member
POST /v1/members
{
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+1234567890",
"birthDate": "1990-01-15",
"preferences": {
"emailNotifications": true,
"smsNotifications": false
}
}
// Get member details
GET /v1/members/{memberId}
// Update member profile
PUT /v1/members/{memberId}
{
"firstName": "John",
"lastName": "Smith",
"preferences": {
"emailNotifications": false
}
}
// Award points for purchase
POST /v1/transactions
{
"memberId": "mem_123",
"type": "earn",
"points": 150,
"amount": 75.00,
"description": "Purchase at Store #1",
"metadata": {
"orderId": "order_456",
"items": ["item1", "item2"]
}
}
// Redeem points
POST /v1/transactions
{
"memberId": "mem_123",
"type": "redeem",
"points": -100,
"rewardId": "reward_789",
"description": "$10 discount applied"
}
// Get available rewards
GET /v1/rewards?memberId=mem_123
// Create custom reward
POST /v1/rewards
{
"name": "$5 Off Next Purchase",
"description": "Save $5 on any purchase over $25",
"pointsCost": 50,
"rewardType": "discount",
"value": 5.00,
"expirationDays": 30,
"minPurchaseAmount": 25.00
}
// Redeem a reward
POST /v1/rewards/{rewardId}/redeem
{
"memberId": "mem_123"
}
// Get program analytics
GET /v1/analytics/overview
{
"dateRange": {
"start": "2024-01-01",
"end": "2024-12-31"
}
}
// Member activity report
GET /v1/analytics/members
{
"groupBy": "tier",
"metrics": ["totalSpend", "pointsEarned", "visits"]
}
// Points activity
GET /v1/analytics/points
{
"period": "monthly",
"breakdown": ["earned", "redeemed", "expired"]
}
Official SDKs & Libraries
Get started quickly with our official libraries and frameworks
JavaScript/Node.js
TypeScript support, promise-based API, and comprehensive error handling.
npm install loyaltymatch-js
Python
Async/await support, data classes, and Django/Flask integration examples.
pip install loyaltymatch-python
PHP
PSR-4 compliant, Laravel service provider, and WordPress plugin support.
composer require loyaltymatch/php-sdk
Ruby
Rails integration, ActiveRecord-style models, and comprehensive test suite.
gem install loyaltymatch-ruby
.NET
Async/await patterns, dependency injection, and ASP.NET Core middleware.
dotnet add package LoyaltyMatch.NET
Go
Context support, structured logging, and comprehensive error handling.
go get github.com/loyaltymatch/go-sdk
Developer-First Experience
Sandbox Environment
Test your integration with realistic data without affecting production systems.
API Monitoring
Real-time monitoring dashboard with request logs, performance metrics, and error tracking.
Postman Collection
Pre-built Postman collection with all endpoints, examples, and test scripts.
24/7 Developer Support
Dedicated developer support team with direct access to engineering for complex integrations.
API Dashboard
API Use Cases
Common integration patterns and solutions
Custom Mobile App
Build native iOS/Android apps with loyalty features integrated directly into your customer experience.
Enterprise Integration
Connect loyalty data with CRM systems, marketing automation, and business intelligence tools.
Kiosk & In-Store
Power self-service kiosks, in-store tablets, and point-of-sale integrations with real-time loyalty data.
Marketing Automation
Trigger personalized campaigns based on loyalty behavior, tier changes, and point balances.
Start Building with Our APIs
Join developers worldwide who are building innovative loyalty solutions with LoyaltyMatch APIs. Get started with comprehensive documentation and sandbox access.
Need developer support? Email our developer team