Integrations
Integrations Overview
Connect useLoyalty with your e-commerce platform and Discord
useLoyalty integrates seamlessly with popular e-commerce platforms and Discord to automatically award points for purchases and community engagement.
Available Integrations
Shopify
Award points for Shopify orders with automatic webhook processing
WooCommerce
WordPress plugin for WooCommerce stores
Discord
Reward Discord community activity with points
Integration Features
E-Commerce (Shopify & WooCommerce)
| Feature | Description |
|---|---|
| Automatic Points | Award points for purchases based on order value |
| Points Per Dollar | Configure earning rate (e.g., 1 point per $1) |
| Multipliers | Product/collection-specific earning rates |
| Refund Handling | Automatic point deduction on refunds |
| Guest Checkout | Optional exclusion for guest orders |
| Minimum Order | Set minimum order value for earning |
| Coupon Rewards | Generate discount codes as rewards |
Discord
| Feature | Description |
|---|---|
| Message Points | Reward chat participation |
| Voice Activity | Points for voice channel time |
| Event Attendance | Reward scheduled event attendance |
| Server Boosts | Bonus points for boosters |
| Account Linking | Connect Discord to loyalty account |
| Role Multipliers | Bonus earning for specific roles |
Points Multiplier Events
All integrations support points multiplier events:
Base Points × Multiplier = Total Points EarnedConfigure multipliers per source:
| Source | Apply Setting |
|---|---|
| Quests | applyToQuests |
| Shopify | applyToShopify |
| WooCommerce | applyToWooCommerce |
| Referrals | applyToReferrals |
| Games | applyToGames |
| Reviews | applyToReviews |
| Discord | applyToDiscord |
Security
All integrations use secure webhook verification:
- Shopify: HMAC-SHA256 signature validation
- WooCommerce: HMAC signature with secret key
- Discord: Signed webhooks with timestamp validation
Quick Setup
Shopify
- Install from Shopify App Store
- Authorize OAuth permissions
- Configure points settings
- Webhooks auto-registered
WooCommerce
- Upload WordPress plugin
- Enter API credentials
- Configure points settings
- Test webhook connection
Discord
- Create Discord bot
- Connect guild to useLoyalty
- Configure activity points
- Deploy bot to server
Data Flow
Platform Event → Webhook → useLoyalty API → Process → Award Points- Event Trigger: Order placed, message sent, etc.
- Webhook Sent: Platform sends signed webhook
- Verification: useLoyalty verifies signature
- Processing: Calculate points with multipliers
- Award: Update member points balance
- Activity Log: Record transaction
Member Identification
| Platform | Identifier |
|---|---|
| Shopify | Customer email |
| WooCommerce | Customer email or user ID |
| Discord | Discord user ID (linked account) |
Members are matched by email or external ID. If no member exists, one is created automatically on first purchase/activity.