Skip to content

rtraselbd/apisync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHMCS API Sync Addon

Version WHMCS PHP License

Automatically synchronize WHMCS events to external REST APIs in real-time.

Features

  • Real-time event synchronization to external APIs
  • Support for POST, PUT, and PATCH requests
  • Authentication with custom headers (Bearer tokens, API keys, etc)
  • Configurable retry logic with exponential backoff
  • Comprehensive logging and statistics
  • Connection testing
  • Responsive admin dashboard

Installation

Download

Download Latest Release

Setup

  1. Download apisync.zip from the latest release
  2. Upload to your WHMCS server
  3. Extract to /path/to/whmcs/modules/addons/
  4. In WHMCS Admin Area:
    • Go to SetupAddon Modules
    • Find "API Sync" and click Activate
    • Click Configure and set Access Control to "Full Administrator"
    • Click Save Changes
  5. Access via AddonsAPI Sync

Quick Start

  1. Click "Add Endpoint"
  2. Enter your API details:
    Name: My API Integration
    URL: https://your-api.example.com/webhook
    Method: POST
    
  3. Add authentication headers if needed:
    Authorization: Bearer your-token-here
    
  4. Select events to monitor
  5. Save and test the connection

Example Payload

Your endpoint will receive JSON data like this:

{
  "event": "ClientAdd",
  "timestamp": "2025-01-15T10:30:45+00:00",
  "data": {
    "userid": "123",
    "firstname": "John",
    "lastname": "Doe",
    "email": "john.doe@example.com",
    "company": "Acme Corp",
    "address": {
      "address1": "123 Main St",
      "city": "New York",
      "state": "NY",
      "postcode": "10001",
      "country": "US"
    },
    "phone": "+1234567890",
    "currency": "USD"
  }
}

Configuration

Endpoint Settings

  • Name: Identifier for your endpoint
  • URL: Complete API endpoint URL
  • HTTP Method: POST, PUT, or PATCH
  • Active Status: Enable/disable endpoint

Authentication

Configure using custom headers:

Authorization: Bearer your-jwt-token
X-API-Key: your-api-key

Advanced Settings

  • Timeout: 1-300 seconds (default: 30)
  • Retry Attempts: 0-10 (default: 3)
  • Retry Delay: 1-60 seconds (default: 5)

Requirements

  • WHMCS 8.0 or higher
  • PHP 8.1 or higher
  • cURL and JSON extensions

Support

License

MIT License - see LICENSE file for details.

About

Seamlessly synchronize WHMCS events to external REST APIs with real-time webhooks

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages