Integration Guide
Last updated
Was this helpful?
Last updated
Was this helpful?
This document outlines the step-by-step process for integrating external applications with Chup Online using webhooks. Webhooks enable real-time notifications of events occurring within Chup Online, allowing external applications to react accordingly and automate workflows.
Chup Online webhooks notify you of various events categorized into:
Appointment: appointment_created, appointment_updated, appointment_deleted
Live Queue: live_queue_created, live_queue_updated, live_queue_deleted
Client: client_created, client_updated, client_deleted
Service: service_created, service_updated, service_staffs_updated, service_deleted
User: staff_created, staff_updated, staff_services_updated, staff_deleted
Enable Webhooks: Determine the type of webhook you need (e.g., outgoing) and the external application endpoint URL that Chup Online will send payload to.
Define Outgoing URL: This URL is your endpoint in the external application where Chup Online will send webhook. Provide the complete URL with authentication details (if applicable) in the designated field.
Utilize the given api_key
, business_id
and email
to generate a bearer token for your sessions.
Securely store this bearer token as it will be used to authorize your interactions with the Chup API.
Create Endpoint: In your external application, create an endpoint that can receive HTTP POST requests containing JSON-formatted webhook data from Chup Online. Ensure it can handle different event types and process the data accordingly.
Data Persistence: Implement mechanisms to store received webhook data in a suitable database or data structure for further processing or analysis.
Retrieve Token: Use the Chup Online auth endpoint () with valid credentials to acquire an authentication token.
Trigger Alert: Employ the Chup Online alert endpoint () to send alerts to patients, utilizing the acquired token for authorization. Pass the relevant patient identifier (visit_id) and customize the alert message.