Skip to main content

PatientNow Pro: API Integration

GHL Developer Guide PatientNowPro

Prerequisites

  • API Key provided by the PatientNow team

  • Practice ID from PatientNow

  • GHL webhook URLs for event subscriptions

  • Access to Swagger documentation (from PatientNow)

Table of Contents

  • Getting a Single Object

  • Getting Many Objects

  • Creating New Patients

1. Integration Workflow

  1. Register Webhooks using the Events API to subscribe to event types (e.g., Patient.Created, Appointment.Created).

  2. Receive Event Notifications at your GHL webhooks in real-time.

  3. Retrieve Related Data using the Url provided in the event payload.

Example Event Payload:

{  "Application": "PNP",  "TenantId": "patientnow_download_2",  "EventId": "34f57459-5237-433d-8e9c-15451d0c37c9",  "EventType": "Patient.Created",  "EventTimestamp": "2025-10-28T17:22:47.7573685Z",  "Url": "https://backend.production.patientnow.net/backend/patientnowpro/practices/patientnow_download_2/patients/47"}

2. Events API

Use the Events API to register and manage GHL webhooks.

rtaImage

Endpoints:

  • GET /webhooks – List all registered webhooks

  • POST /webhooks – Register a new webhook

  • GET /webhooks/{webhookId} – Get webhook by ID

  • DELETE /webhooks/{webhookId} – Delete a webhook

Webhook Registration Parameters:

  • application: must be PNP

  • tenantId: the Practice ID

  • eventType: see full list below

  • integration: must be GHL

  • webhookUrl: your GHL webhook endpoint

Supported Event Types:

  • Patient.Created, Patient.Updated

  • Appointment.Created, Appointment.Updated, Appointment.StatusUpdated

  • PatientBill.Created, .Updated, .Locked

  • PatientBillPayment.Created

  • MembershipPlan.Created

  • EventType.Created, .Updated

  • Provider.Created, .Updated

  • User.Created, .Updated

  • ServiceFacility.Created, .Updated

  • Procedure.Created, .Updated

Swagger Use Tips:

  1. Click Authorize, paste your API key, then click Authorize again.

  2. rtaImage

  3. rtaImage
  4. Use Try it out to test API endpoints.

  5. rtaImage
  6. rtaImage

Error Codes:

Code

Meaning

Fix

200/201/204

Success

-

400/401/404/422

Invalid input

Review error body and retry

500

API defect

Send full request + response to PatientNow Pro team

Note: One webhook per eventType is allowed. Use DELETE endpoint to remove old ones.

3. PatientNow Pro Applications

Event messages are triggered by user activity in PatientNow Pro apps.

Desktop App

  • Windows-based application, .NET Framework 4.7 required.

  • Download from Home Page - PatientNow Inc.

Creating a Patient:

  1. Login with Practice, User Name, Password

  2. rtaImage
  3. Click Select Patient > Add Patient

  4. rtaImage
  5. Enter patient details and contact info

  6. rtaImage
  7. Click OK to create patient

  8. Event Patient.Created sent in ~10 seconds

Updating a Patient:

  1. Click Select Patient, search, and select patient

  2. Update fields and click OK

  3. Event Patient.Updated sent in ~10 seconds

iOS App

4. Event Messages

All event messages follow this schema:

{  "Application": "PNP",  "TenantId": "<Practice ID>",  "EventId": "<GUID>",  "EventType": "<Event.Name>",  "EventTimestamp": "<UTC Timestamp>",  "Url": "<GET Endpoint>"}

Tips:

  • Use EventId to avoid duplicate processing

  • Use Url to fetch object directly

5. PatientNow Pro API

Use this API to retrieve or create objects (e.g., patients, appointments).

rtaImage

Getting Single Object

  1. Open GET /practices/{practiceId}/patients/{patientId}

  2. Input practiceId and patientId

  3. Click Execute

Use URLs from event messages directly; they already contain parameters.

Getting Many Objects

  1. Open GET /practices/{practiceId}/patients

  2. Input practiceId (and optional page and limit)

  3. Click Execute

Response Includes:

  • page: Page number

  • itemsCount: Items on page

  • links: Pagination URLs

Creating New Patients

  1. Open POST /practices/{practiceId}/patients

  2. Input practiceId and patient fields in body

  3. Click Execute

Success: Response code 201
​Errors: Review 400, 401, 404, 422 or 500 responses per troubleshooting table.

Troubleshooting

Symptom

Likely Cause

Fix

Webhook not firing

Event not configured

Register correct eventType

Duplicate event messages

EventId reused

Use EventId for deduplication

401 Unauthorized

Invalid API Key

Reauthorize in Swagger

500 Server Error

API defect

Send full request to PatientNow Pro support


Did this answer your question?