Getting Started with Magento FreeAgent Integration
Welcome to Magento FreeAgent Integration - the enterprise-grade connector that seamlessly integrates your Magento 2 e-commerce platform with FreeAgent accounting software.
What is Magento FreeAgent Integration?
Magento FreeAgent Integration is a powerful, bi-directional integration solution that automates critical accounting and financial processes between Magento 2 and FreeAgent. It eliminates manual data entry, reduces errors, and ensures financial data consistency across both platforms.
Key Features
- Invoice Synchronization - Automatically export Magento orders as FreeAgent invoices
- Contact Management - Keep customer data synchronized across both systems
- Credit Memo Processing - Export credit memos to FreeAgent as credit notes
- Profile-Based Sync - Flexible, configurable synchronization profiles
- OAuth Authentication - Secure OAuth 2.0 connection with automatic token refresh
- Enterprise Ready - Queue processing, retry logic, logging, and notifications
What You'll Need
Before you begin, make sure you have:
- Magento FreeAgent Integration License - Contact Byte8 Ltd for licensing
- Magento 2.4.x - Compatible Magento installation
- PHP 8.1+ - PHP 8.1 or higher
- FreeAgent Account - Active FreeAgent account with API access
- Composer - For installing the extension
Quick Start
Follow these steps to get Magento FreeAgent Integration up and running.
Step 1: Check System Requirements
Verify your system meets all requirements:
- Magento 2.4.4 or higher
- PHP 8.1 or higher (8.2, 8.3, 8.4, 8.5 supported)
- MySQL 8.0 or MariaDB 10.6
- Required PHP extensions (curl, json, openssl, xml, zip, mbstring)
Step 2: Install Magento FreeAgent Integration Connector
Setup Composer Repository
After purchasing the extension, you'll receive access to a private Composer repository:
# Add the private repository
composer config repositories.private-packagist composer https://byte8.repo.packagist.com/your-repository-name/
# Setup authentication (use token as username)
composer config --global --auth http-basic.byte8.repo.packagist.com token your-access-token
Install the Package
composer require byte8/magento-freeagent-suite
Complete Installation
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:flush
For detailed installation instructions, see the Composer Installation Guide.
Step 3: Configure FreeAgent Connection
Configure your FreeAgent API connection in the Magento Admin panel:
- Navigate to Stores > Configuration > Byte8 > FreeAgent Integration
- Select the client mode (Production or Sandbox)
- Enter your Client ID and Client Secret from FreeAgent
- Click Authorize to complete the OAuth flow
- Test the connection
For detailed configuration instructions, see the Client Configuration Guide.
Step 4: Configure Profile Settings
Set up profile execution settings and notification system:
- Navigate to Stores > Configuration > Byte8 > Profile Configuration
- Configure profile history retention period
- Enable notifications if desired
- Set up email alerts for critical errors
For detailed instructions, see the Profile Configuration Guide.
Step 5: Create and Configure Profiles
Set up synchronization profiles for each entity type:
- Navigate to Byte8 > FreeAgent > Profiles in the admin panel
- Create profiles for contacts, invoices, and credit memos
- Configure each profile's schedule, batch size, and processing options
- Enable the schedule for automated sync
Verification Steps
After completing the setup, verify everything is working:
# Flush cache
bin/magento cache:flush
# Test with a manual sync
bin/magento fa_contact:export --dry-run
What's Next?
Now that setup is complete, configure your integration profiles:
- About Profiles - Understand the profile system
- Contact Export - Configure contact synchronization
- Invoice Export - Set up invoice processing
- Credit Memo Export - Configure credit memo sync
- CLI Commands - Full CLI reference
Need Help?
- Email Support: support@byte8.io
- Bug Reports: GitHub Issues
- Documentation: Browse this site for comprehensive guides
Architecture Overview
graph LR
A[Magento 2] <-->|Magento FreeAgent Integration| B[FreeAgent]
A -->|Invoices| B
A -->|Contacts| B
A -->|Credit Memos| B
B -->|Status Updates| A
Understanding this bi-directional architecture helps you configure the integration effectively.