Prerequisites
Before starting the integration process, ensure you have the following:- Active Affelios subscription - Any plan (Flex, Pro, or Enterprise)
- SFTP Server Access - Valid SFTP server credentials and access
- XML Data Files - Registration and Transaction XML files available on your SFTP server
- Whitelisted IP Addresses - SFTP 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
Secure Data Transfer
Secure Data Transfer
- Encrypted SFTP connections for secure file transfer
- Secure authentication with username/password or SSH keys
- Protected data transmission over SSH protocol
- Compliance with security best practices
Flexible Data Mapping
Flexible Data Mapping
- Custom field mapping for your specific XML 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 XML SFTP Integration Settings
Access Integration Settings
Select XML SFTP Integration
Configure SFTP Connection
Step 3: Set Up SFTP Connection Settings
SFTP Connection Configuration
Field | Example | Description |
---|---|---|
SFTP Hostname | sftp.yourbusiness.com | Your SFTP server hostname |
SFTP Port | 22 | Standard SFTP port (22) or custom port |
Username | your_username | SFTP server username |
Password | your_password | SFTP server password |
Registration Filename Template | /data/registrations/[YEAR]-[MONTH]-[DAY].xml | Path to Registrations file with date tokens |
Transactions Filename Template | /data/transactions/[YEAR]-[MONTH]-[DAY].xml | Path to Transactions file with date tokens |
Step 4: Configure Field Mapping
After establishing a valid connection, you’ll need to map the XML 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 connects to your SFTP server each morning at 3 AM
- Downloads previous day’s registration and transaction XML 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
- XML 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 SFTP server has whitelisted the required Affelios IP addresses
- Check that your SFTP hostname and port are correct
- Ensure your SFTP credentials are valid and active
- Contact your SFTP server administrator to verify access
Data Import Problems
Data Import Problems
- Check that your filename templates are correct
- Verify that XML files are being generated in the expected location
- Ensure your XML files are in the correct format and well-formed
- Review import logs for specific error messages
Field Mapping Issues
Field Mapping Issues
- Verify that XML field names match your mapping configuration
- Check that all required fields are properly mapped
- Ensure XML files contain the expected data structure
- 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 SFTP Administrator
Contact Affelios Support
Provide Details
Best Practices
Optimization Tips
Data Management
Data Management
- Regularly monitor import logs for any issues
- Ensure XML files are generated consistently and are well-formed
- Verify that all required fields are being populated
- Keep historical data for reporting and analysis
Security Best Practices
Security Best Practices
- Use strong passwords for SFTP access
- Regularly rotate SFTP credentials
- Monitor SFTP access logs
- Keep SFTP 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