Welcome, Partner Developers!
This guide will take you from zero to your first successful loyalty program integration with Zupy. Whether you’re building a PDV system, delivery app, or e-commerce platform, this walkthrough covers everything you need to get started.Estimated Time: 30-45 minutes to complete your first integration
Prerequisites
Before starting, ensure you have:Partner Account Access
Active Zupy partner account with developer dashboard accessDon’t have access? Contact [email protected]
Development Environment
Your preferred development setup with ability to make HTTP requestsSupported Languages: JavaScript, Python, PHP, Java, C#, and more
Test Customer Data
Sample customer phone numbers and order data for testingStaging Environment: We provide test data for development
Integration Overview
Zupy’s loyalty integration follows this flow:1
Authentication Setup
Generate API keys and verify access to loyalty endpoints
2
Customer Management
Search/create customers and access their loyalty profiles
3
Points & Rewards
Award points, validate rewards, and manage coupon redemption
4
Production Deployment
Test thoroughly and deploy with confidence
Step 1: Authentication & API Access
Generate Your API Key
- Access Dashboard: Navigate to app.zupy.com/developers
- Verify Account: Complete OTP verification (WhatsApp or Email)
- Create API Key: Generate a staging key with these permissions:
Test API Connection
Verify your authentication with a simple API call:Step 2: Customer Management Integration
Search for Existing Customers
Most integrations start by checking if a customer exists in the loyalty program:Create New Customers
If the customer doesn’t exist, create their loyalty profile:Step 3: Points & Rewards Integration
Award Points for Transactions
When a customer makes a purchase, award loyalty points:Check Available Rewards
Show customers what rewards they can redeem:Validate & Redeem Coupons
Handle coupon validation and redemption in your order flow:Step 4: Complete Integration Example
Here’s a complete example integrating customer lookup, points award, and coupon validation:Step 5: Testing & Validation
Test Your Integration
Use these test scenarios to validate your implementation:Test Scenario 1: New Customer Order
Test Scenario 1: New Customer Order
Test Scenario 2: Returning Customer with Coupon
Test Scenario 2: Returning Customer with Coupon
Test Scenario 3: Invalid Coupon Handling
Test Scenario 3: Invalid Coupon Handling
Error Handling Best Practices
Implement robust error handling for production use:Step 6: Production Deployment
Pre-Production Checklist
Before going live, ensure you’ve completed:API Key Management
- Generate production API keys with minimal required permissions
- Store keys securely as environment variables
- Configure IP restrictions if applicable
- Set up key rotation schedule
Error Handling
- Implement retry logic for network issues
- Handle rate limiting gracefully
- Log API errors for monitoring
- Test with invalid/expired coupons
Performance
- Test with high order volumes
- Implement request timeout handling
- Cache customer data appropriately
- Monitor API response times
Business Logic
- Verify points calculation accuracy
- Test all discount types (percentage, fixed, free items)
- Validate coupon usage restrictions
- Confirm tier progression logic
Production Configuration
Update your configuration for production environment:Monitoring & Support
Set up monitoring for your loyalty integration:- API Response Times: Monitor average response times and set alerts for degradation
- Error Rates: Track authentication failures, validation errors, and network issues
- Business Metrics: Monitor points awarded, coupons redeemed, and customer engagement
- Support Contact: [email protected] for production issues
Next Steps
Congratulations! You now have a complete loyalty program integration. Here’s what to explore next:Advanced Features
Explore webhooks, RFM segmentation, and advanced reward configurations
Analytics Integration
Set up analytics tracking for loyalty program performance
Customer Communications
Integrate WhatsApp notifications and email campaigns
Apple Wallet Integration
Create digital loyalty cards for Apple Wallet
Support & Community
Developer Support
Get technical support from our developer team
API Documentation
Complete reference for all loyalty program endpoints
Status Page
Monitor API availability and system status