Webhooks
Webhook Setting
Webhook URL to be set by developers in the admin control panel
See below:
Sample Webhook Payload
v1 (currently active, will be deprecated later)
visit.created, visit.updated, visit.ended, visit.note.signed_and_sent, visit.invoice.processed
{
"version": "1.0",
"id": "5c34979c-30dc-496c-8cd3-6eb9925862c1",
"type": "visit.ended",
"created": 1546950556,
"account_code": "xxx",
"data": {
"id": "28540",
"member_id": "60610",
"provider_id": null,
"start": "1546950546",
"end": "1546951446",
"actual_start": "1546950546",
"actual_end": "1546950555",
"status": "40",
"completed_by": "60610"
}
}
v2 (beta)
visit.created, visit.updated, visit.ended
{
"version": "2.0",
"id": "5c34979c-30dc-496c-8cd3-6eb9925862c1",
"type": "visit.ended",
"created": 1546950556,
"clinic_code": "xxx",
"data": {
"id": "28540",
"member_id": "60610",
"provider_id": null,
"start": 1546950546,
"end": 1546951446,
"actual_start": 1546950546,
"actual_end": 1546950555,
"status": "cancelled",
"status_updated_by": "60610"
}
}
visit.note.signed_and_sent
{
"version": "2.0",
"id": "5c34979c-30dc-496c-8cd3-6eb9925862c1",
"type": "visit.note.signed_and_sent",
"created": 1546950556,
"clinic_code": "xxx",
"data": {
"id": "28540",
"member_id": "60610",
"provider_id": null,
"start": 1546950546,
"end": 1546951446,
"actual_start": 1546950546,
"actual_end": 1546950555,
"status": "completed",
"status_updated_by": "60610",
"note": {
"id": xxx,
"status": "signed" // new, signed, draft
}
}
}
visit.invoice.processed
Available Webhook Events
Event | Page/Process | Action/when it’s triggered |
user.created | Patient complete account sign up | Patient complete account sign up |
Clinic trial | Provider signup | |
Admin/users tab | Admin create a new provider | |
Calendar layout | Create new patient at calendar page when search patient there is no result | |
Waiting room | Guest enter waiting room | |
Remote nurse patient search | Remote nurse creates patient account | |
visit.created | Patient dashboard | Patient make an appointment with provider |
Schedule page | Provider make appointment single/repeat | |
Patient dashboard | Patient walkin | |
visit.ended | Patient waiting room | Patient click exit waiting room |
Provider visit details page | Provider complete a visit/checkout | |
Provider visit details page / Calendar edit visit | Provider cancel a visit | |
visit.updated | Provider dashboard / Provider visit details | Visit status turn to inprogress |
visit.note.signed_and_sent | Provider visit details page | Provider click sign and send button |
visit.invoice.processed | Provider visit details page | Whenever there is any update for invoice. We'll know detail with field status |
Debugging webhook call
The log of all webhook calls is available on the same admin page.
Detail of each webhook call can be viewed as well.