🚀 Glofox → GHL Connector

✅ RUNNING

📋 Configuration Status

Glofox API: configured
GHL Webhook: configured
GHL API: configured
Branch ID: configured
Webhook Secret: not set

Available Endpoints

Dashboard (No-Code Setup)

Open Dashboard →

Step-by-step wizard to create orgs, add Glofox & GHL credentials, and run syncs. No code required.

Membership Sync (Visual UI)

Open Membership sync setup →

Map Glofox member fields to GHL custom object and sync 5 latest members.

Multi-Org Management (auth required)

GET /api/orgs - List your organizations
POST /api/orgs - Create a new organization
GET|POST /api/orgs/{orgId}/credentials - Manage Glofox + GHL credentials
GET|POST|DELETE /api/orgs/{orgId}/members - Manage org members
GET /api/orgs/{orgId}/sync-members - Sync members from Glofox to GHL
GET /api/orgs/{orgId}/sync-payments - Sync payments from Glofox to GHL
GET /api/orgs/{orgId}/sync-log - View sync history

Health Check

GET /api/health

Basic health check endpoint

Legacy Single-Org Endpoints

GET /api/last-customer - Get last customer and add to GHL
GET /api/recent-customers - Get recent customers and add to GHL
GET /api/poll-payments - Poll Glofox transactions

Webhooks (auto-routes to correct org by branch_id)

POST /api/webhooks/booking - Booking webhooks
POST /api/webhooks/member - Member webhooks
POST /api/webhooks/invoice - Invoice webhooks
POST /api/webhooks/membership - Membership webhooks