Prerequisites
Before starting the integration process, ensure you have the following:- Active Affelios subscription - Any plan (Flex, Pro, or Enterprise)
- HTTP Endpoints - Valid HTTP endpoints serving CSV data files
- CSV Data Files - Registration and Transaction CSV files accessible via HTTP
- Whitelisted IP Addresses - HTTP server must allow connections from Affelios IP addresses
- Admin Access - Full administrative privileges to your Affelios account
Integration Benefits
Key Features
Automated Data Import
Automated Data Import
- Daily automatic import of customer registrations and transactions
- Real-time commission calculations based on actual revenue
- Automated deduction handling for payment fees and taxes
- No manual data entry required
HTTP-Based Data Access
HTTP-Based Data Access
- Direct HTTP requests to your data endpoints
- Support for HTTPS for secure data transfer
- Basic authentication support
- RESTful API integration capabilities
Flexible Data Mapping
Flexible Data Mapping
- Custom field mapping for your specific CSV format
- Support for multiple product categories
- Individual product revenue and transaction tracking
- Detailed commission breakdowns by product type
Advanced Attribution
Advanced Attribution
- Configurable cookie tracking periods
- Automatic ClickKey generation for proper attribution
- Customer registration and transaction linking
- Anonymous transaction prevention
Step-by-Step Integration Guide
Step 1: Create a Brand in Affelios
Access Brand Creation
Create New Brand
Configure Brand Settings
Brand Configuration Example
For a brand called “YourBusiness.com”, use these settings:Brand Step 1 - Basic Information
Field | Example | Description |
---|---|---|
Name | Your Business | Display name shown to affiliates and in reports |
Industry | Your Industry | Used to categorize and filter brands |
External ID | yourbusiness | Unique value used externally (best practice) |
Landing Page URL | https://yourbusiness.com?clickkey=[ClickKey] | Your website with ClickKey parameter for tracking |
Brand Step 2 - Advanced Settings
Field | Example | Description |
---|---|---|
Auto-Approve Commissions | Enabled | Recommended to avoid data delays |
Allow Anonymous Transactions | Disabled | Important: Keep disabled for proper attribution |
Deposit Fees | 3% | Payment fees deducted from Net Revenue |
Tax Rate Deduction | 21% | Applicable taxes |
Net Revenue Deduction | 15% | Platform and operational costs |
Step 2: Configure CSV HTTP Integration Settings
Access Integration Settings
Select CSV HTTP Integration
Configure HTTP Connection
Step 3: Set Up HTTP Connection Settings
HTTP Connection Configuration
Field | Example | Description |
---|---|---|
Protocol | HTTPS | Enable HTTPS for secure data transfer |
HTTP Hostname | api.yourbusiness.com | Your HTTP server hostname |
Username (Basic Auth) | your_username | Optional HTTP basic authentication username |
Password (Basic Auth) | your_password | Optional HTTP basic authentication password |
Registration Filename Template | /data/registrations/[YEAR]-[MONTH]-[DAY].csv | Path to Registrations endpoint with date tokens |
Transactions Filename Template | /data/transactions/[YEAR]-[MONTH]-[DAY].csv | Path to Transactions endpoint with date tokens |
Step 4: Configure Field Mapping
After establishing a valid connection, you’ll need to map the CSV fields to Affelios fields.Customer Field Mapping
Registration Data Mapping
Affelios Field | Description | External Field Example |
---|---|---|
Registration Date | The date the customer registered | REGISTRATION_DATE |
External Customer ID | Your system’s ID for the customer | CUSTOMER_ID |
Click Key | Unique value generated by Affelios | CLICK_KEY |
Customer Username | Customer username or email | USERNAME |
Country Code | 2-letter country code of the customer | COUNTRY |
Transaction Field Mapping
Transaction Data Mapping
Affelios Field | Description | External Field Example |
---|---|---|
External Customer Id | Your system’s ID for the customer | CUSTOMER_ID |
Transaction Date | The Date of the transaction | TRANSACTION_DATE |
Deposits | Sum total of Deposits | DEPOSITS |
Gross Revenue | Sum total of Revenue | REVENUE |
Wagering | Sum total of Wagering/Bets | WAGERING |
Step 5: Enable Daily Import
Configure Import Settings
Save Integration
Verify Connection
Data Import Management
Automatic Import Features
Import Process
Daily Data Retrieval
Daily Data Retrieval
- Affelios makes HTTP requests to your endpoints each morning at 3 AM
- Downloads previous day’s registration and transaction CSV files
- Data is processed and mapped according to your configuration
- Commissions are calculated automatically
Data Validation
Data Validation
- Connection validation before each import
- Field mapping verification
- Data format validation
- Error logging and reporting
Import Monitoring
Import Monitoring
- View import logs in Settings > Imports
- Retry failed import attempts
- Reimport historical data by date range
- Monitor import success rates
Managing Imports
Monitor Import Status
Review Data Quality
Handle Import Errors
Historical Data
Commission Management
Automated Commission Processing
Commission Calculation
Revenue-Based Commissions
Revenue-Based Commissions
- Commissions calculated on Gross Revenue
- Automatic deduction handling for fees and taxes
- Real-time commission updates
- Flexible commission structures
Deduction Management
Deduction Management
- Deposit fees (e.g., 3% payment processing fees)
- Tax rate deductions (e.g., 21% applicable taxes)
- Net revenue deductions (e.g., 15% operational costs)
- Transparent deduction reporting
Custom Commission Plans
Custom Commission Plans
- Different rates for different product categories
- Customizable commission structures per product
- Tiered commission plans based on performance
- Automatic commission approval (recommended)
Troubleshooting
Common Issues
Connection Issues
Connection Issues
- Verify that your HTTP server has whitelisted the required Affelios IP addresses
- Check that your HTTP hostname and endpoints are correct
- Ensure your HTTP credentials are valid and active
- Contact your HTTP server administrator to verify access
Data Import Problems
Data Import Problems
- Check that your filename templates are correct
- Verify that CSV files are accessible via HTTP at the expected URLs
- Ensure your CSV files are in the correct format
- Review import logs for specific error messages
Field Mapping Issues
Field Mapping Issues
- Verify that CSV field names match your mapping configuration
- Check that all required fields are properly mapped
- Ensure CSV files contain the expected data
- Test with a small sample of data first
Commission Calculation Problems
Commission Calculation Problems
- Verify that your commission plans are properly configured
- Check that field mappings include revenue fields
- Ensure auto-approve commissions is enabled
- Review deduction settings and percentages
Getting Help
Check Import Logs
Contact HTTP Administrator
Contact Affelios Support
Provide Details
Best Practices
Optimization Tips
Data Management
Data Management
- Regularly monitor import logs for any issues
- Ensure CSV files are generated consistently and accessible via HTTP
- Verify that all required fields are being populated
- Keep historical data for reporting and analysis
HTTP Best Practices
HTTP Best Practices
- Use HTTPS for secure data transfer
- Implement proper HTTP caching headers
- Monitor HTTP endpoint performance
- Keep HTTP server software updated
Commission Planning
Commission Planning
- Set competitive commission rates for your industry
- Consider different rates for different product categories
- Monitor affiliate performance and adjust rates accordingly
- Provide clear commission information to affiliates
Integration Monitoring
Integration Monitoring
- Set up alerts for failed imports
- Regularly review commission calculations
- Monitor data quality and consistency
- Keep backup records of important transactions
Affiliate Support
Affiliate Support
- Provide clear information about your products
- Share performance insights and marketing tips
- Respond promptly to affiliate questions
- Recognize top-performing affiliates
Next Steps
Your Integration is Complete!
What Happens Next
Data Synchronization
Commission Processing
Affiliate Onboarding
Performance Monitoring
Program Optimization
Additional Resources
Further Reading
- Brand Creation Guide - Complete brand configuration
- Commission Plan Management - Advanced commission strategies
- Affiliate Onboarding - Guide for your new affiliates
- Reporting & Analytics - Understanding your program performance
- API Documentation - Advanced integration options