Events allow your integration to stay informed with what’s happening on Fullscript. Let’s say one of your clinics updates a patient, or creates a treatment plan. In each case an Event will be created which allows you to take action if need be.
This Event has all of the relevant information about what just happened. It includes the event's type (say treatment_plan.created) and any relevant data to that event.
Note that we only keep a record of events for the past 30 days.
Also know that events are never created for actions made through the API. We assume that, since you initiated the event, you already know about it! 😀
This endpoint lists all clinic_key events from the last 30 days.
A clinic_key.revoked event happens when a clinic revokes access to your integration.
A clinic_key.activated event happens when the first request is made through the API with a valid X-FS-Clinic-Key—activating the integration.
created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.event_typestring
Filter events by event_type.
sort_bystring
Accepts one of the following arguments: event_type created_at.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/clinic_keys" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint retrieves details from an Event. Note that event's can only be retrieved if they were made within the last 30 days.
idstring
Required
Unique identifier of the Event
curl "https://api-us-snd.fullscript.io/api/events/{id}" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint lists all lab order events from the last 30 days.
lab_order.updated event happens when a lab test result is available or has been ammended.created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.sort_bystring
Accepts a created_at. argument.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/lab_orders" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint lists all order events from the last 30 days.
order.placed event happens when an order has been placed.created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.event_typestring
Filter events by event_type.
sort_bystring
Accepts one of the following arguments: event_type created_at.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/orders" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint lists all patient events from the last 30 days.
A patient.created event happens when a patient is created.
A patient.updated event happens when a patient is updated.
A patient.emancipated event happens when a patient completes emancipation.
created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.event_typestring
Filter events by event_type.
sort_bystring
Accepts one of the following arguments: event_type created_at.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/patients" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint lists all product events from the last 30 days.
A product.created event happens when a product is created.
A product.updated event happens when a product or one of its variants is updated.
A product.description.updated event happens when a product's description is updated.
created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.event_typestring
Filter events by event_type.
sort_bystring
Accepts one of the following arguments: event_type created_at.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/products" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'This endpoint lists all treatment_plan events from the last 30 days.
A treatment_plan.created event happens when a Treatment Plan is created.
A treatment_plan.updated event happens when an active Treatment Plan is modified, such as when it is cancelled.
Note: This webhook does not trigger when a draft becomes active, and patient or practitioner changes are not supported on active plans.
A treatment_plan.recommendation.updated event happens when a Treatment Plan's recommendation is updated.
created_atstring
Filter by created_at date. The date must be formatted as follows yyyy-mm-dd.
created_at date is less than. <yyyy-mm-dd.created_at date is greater than. >yyyy-mm-dd.created_at date is within a range. yyyy-mm-dd..yyyy-mm-dd.event_typestring
Filter events by event_type.
sort_bystring
Accepts one of the following arguments: event_type created_at.
order_bystring
Ordering defaults to ASC and can take an argument of ASC or DESC.
curl "https://api-us-snd.fullscript.io/api/events/treatment_plans" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX'