PracticeHub Integration

Sync patients, invoices, and payments between PracticeHub and RevKeen

Connect your PracticeHub practice management system with RevKeen to automatically sync patient data, invoices, and payments. This integration enables seamless payment collection for healthcare providers, wellness clinics, and fitness studios.

Add-On App – PracticeHub integration is available as a premium add-on to your RevKeen subscription. Contact sales@revkeen.com for pricing.

Overview

The PracticeHub integration creates a bi-directional sync between your practice management system and RevKeen's payment platform:

  • Inbound: Patients, invoices, and packages sync from PracticeHub β†’ RevKeen
  • Outbound: Completed payments push from RevKeen β†’ PracticeHub

This allows your patients to pay invoices online while keeping your PracticeHub records automatically updated.

Features

πŸ“„

Patient Sync

Import patients from PracticeHub as RevKeen customers with email matching
πŸ“„

Invoice Sync

Sync unpaid invoices (sent, partial, overdue) for online payment collection
πŸ“„

Automatic Payment Push

Push completed payments back to PracticeHub with full transaction details
πŸ“„

Package Sync

Sync service packages as RevKeen products for upselling and subscriptions

Prerequisites

Before connecting PracticeHub, you'll need:

  • A PracticeHub account with API access enabled
  • Your PracticeHub API Key
  • Your PracticeHub Base URL (e.g., https://yourclinic.practicehub.io)
Contact PracticeHub support to enable API access for your account if you don't have an API key.

Setup Instructions

Step 1: Get Your API Credentials

  1. Log in to your PracticeHub admin panel
  2. Navigate to Settings β†’ API Access
  3. Generate or copy your API Key
  4. Note your Base URL (the URL you use to access PracticeHub)

Step 2: Connect in RevKeen

  1. Go to your RevKeen Dashboard
  2. Navigate to Settings β†’ Integrations
  3. Find PracticeHub and click Connect
  4. Enter your credentials:
FieldDescriptionExample
Base URLYour PracticeHub instance URLhttps://yourclinic.practicehub.io
API KeyYour PracticeHub API keypk_live_xxxxx
App NameOptional identifierRevKeen
Sync EnabledEnable automatic syncingtrue

5. Click Save & Validate

RevKeen will validate your credentials before saving. If validation fails, double-check your API key and Base URL.

Step 3: Configure Sync Settings

After connecting, you can configure what data syncs:

  • Patients β†’ Customers: Import patient records (email, name onlyβ€”no PHI)
  • Invoices: Sync unpaid invoices for payment collection
  • Packages β†’ Products: Sync service packages as products
  • Payment Methods: Map PracticeHub payment types to RevKeen

Data Sync Details

What Syncs

PracticeHubRevKeenDirectionSync Trigger
PatientsCustomersPracticeHub β†’ RevKeenUpdated timestamp
Invoices (unpaid)InvoicesPracticeHub β†’ RevKeenUpdated timestamp
PackagesProductsPracticeHub β†’ RevKeenUpdated timestamp
Payment MethodsPayment Method MappingsPracticeHub β†’ RevKeenInitial sync
β€”PaymentsRevKeen β†’ PracticeHubPayment completion

Patient β†’ Customer Mapping

When a patient syncs from PracticeHub:

PracticeHub FieldRevKeen FieldNotes
idexternal_idUsed for matching
emailemailRequired – patients without email are skipped
first_namefirst_nameDirect mapping
last_namelast_nameDirect mapping
phonephoneDirect mapping
patient_numbercustomer_numberUsed for display

What Does NOT Sync (PHI Compliance)

RevKeen never syncs Protected Health Information (PHI) to maintain HIPAA compliance.

The following fields are blocked and never imported:

  • Date of birth
  • Medical history
  • Diagnosis/symptoms
  • Treatment plans
  • Clinical notes
  • Staff notes
  • Appointment details (beyond basic scheduling)
  • Social Security numbers
  • Insurance information

Only billing-safe fields are synced:

  • βœ… Email address
  • βœ… First name, Last name
  • βœ… Patient/customer number
  • βœ… Invoice amounts and due dates
  • βœ… Product/service names and prices

How Payment Push Works

When a customer pays an invoice through RevKeen, the payment is automatically recorded in PracticeHub.

Payment Flow

Patient
β†’
Pay invoice online via RevKeen
RevKeen
β†’
Process card payment via NMI Gateway
Gateway
β†’
Payment confirmed
RevKeen
β†’
POST payment to PracticeHub API
PracticeHub
β†’
Invoice marked as paid, balance updated

What Gets Pushed

When a payment is completed, RevKeen sends the following to PracticeHub:

FieldDescriptionExample
amountPayment amount in cents5000 (= $50.00)
patient_idPracticeHub patient ID12345
payment_type_idMapped payment method7 (Card)
serviceSource system identifierrevkeen
service_idRevKeen transaction IDnmi_txn_abc123
notePayment detailsCard – NMI Gateway | Last4: 4242

Sync Architecture

Incremental Sync Strategy

RevKeen tracks the last sync timestamp and only fetches records updated since then:

GET /api/patients?updated=gte:2024-11-30T10:00:00Z
GET /api/invoices?updated=gte:2024-11-30T10:00:00Z&status=in:sent,partial,overdue
GET /api/packages?updated=gte:2024-11-30T10:00:00Z

This ensures:

  • Minimal API calls – Only changed records are fetched
  • Fast sync – Updates complete in seconds, not minutes
  • Respect rate limits – Won't overwhelm PracticeHub API

Polling Schedule

ResourceFrequencyNotes
Patients1-30 secondsMore frequent when changes detected
Invoices1-30 secondsFocuses on unpaid invoices only
Packages10-30 secondsLess frequent (packages rarely change)

Troubleshooting

Connection Failed

  • Verify your API key is correct (no extra spaces)
  • Check if the API key has expired
  • Ensure API access is enabled in PracticeHub
  • Use the full URL including https://
  • Don't include trailing slashes
  • Example: https://yourclinic.practicehub.io
  • Check if PracticeHub is accessible
  • Verify your firewall allows outbound connections
  • Try again in a few minutes

Sync Issues

  • Check if patients have email addresses (required)
  • Verify sync is enabled in settings
  • Check the Sync Status in your dashboard
  • Verify the customer is linked to a PracticeHub patient
  • Check payment method mappings are configured
  • Review error logs in Settings β†’ Integrations
  • Only unpaid invoices sync to RevKeen
  • Paid invoices are skipped (already settled)
  • Check the invoice status in PracticeHub

Payment Method Mapping

RevKeen automatically maps payment methods between systems:

RevKeen TypePracticeHub Match
card"Card", "Credit Card", "Debit Card"
bank_transfer"Bank Transfer", "ACH", "EFT"
cash"Cash"
cheque"Cheque", "Check"
Payment method mappings are created automatically when you first sync. You can customize them in Settings β†’ Integrations β†’ PracticeHub β†’ Payment Methods.

Webhook Events

RevKeen emits webhook events for PracticeHub sync activity:

EventDescription
practicehub.customer.syncedCustomer created/updated from patient
practicehub.invoice.syncedInvoice created/updated from PracticeHub
practicehub.payment.pushedPayment successfully pushed to PracticeHub
practicehub.payment.failedPayment push failed (will retry)
practicehub.sync.errorSync encountered an error

Error Handling & Retries

RevKeen automatically handles common errors:

Error TypeActionMax Retries
Rate limit (429)Exponential backoff5
Server error (5xx)Retry with delay3
Network timeoutRetry3
Authentication error (401)Disable sync, notify admin0
Not found (404)Skip record, log warning0
If sync errors persist, check Settings β†’ Integrations β†’ PracticeHub β†’ Logs for detailed error messages.

Frequently Asked Questions

Payments are pushed to PracticeHub within 1-5 seconds of being processed. The patient balance updates immediately once PracticeHub confirms receipt.
RevKeen queues the payment push and retries automatically. Payments are guaranteed to be delivered to PracticeHub once it's back online. You can see queued payments in your dashboard.
Currently, RevKeen syncs all active patients with email addresses. Contact support if you need filtering by patient groups or locations.
Yes. When a patient makes a partial payment, RevKeen pushes the exact amount to PracticeHub. The invoice status updates to "partial" in both systems.
Refunds processed in RevKeen are logged but not automatically pushed to PracticeHub. You'll need to manually adjust the patient balance in PracticeHub for refunds.
Yes. All API communication uses HTTPS/TLS encryption. API keys are stored encrypted using industry-standard vault technology. RevKeen is SOC 2 compliant.

Support

Need help with your PracticeHub integration?