# Get an event Endpoint: GET /events/{id} Version: 2024-12-10 Security: BearerAuth ## Path parameters: - `id` (string, required) ## Response 200 fields (application/json): - `event` (object) - `event.id` (string, required) - `event.name` (string, required) Name of the event that occurred. Additional information specific to each event is available in payload. Enum: "accepted", "rejected", "ordered", "dispensed", "delivered" - `event.prescription_identity` (object, required) This information should be used to match events to prescriptions as they are read from the events endpoint. - `event.prescription_identity.patient_first_name` (string, required) - `event.prescription_identity.patient_last_name` (string, required) - `event.prescription_identity.patient_state` (string, required) - `event.prescription_identity.patient_dob` (string, required) - `event.prescription_identity.erx_message_id` (string,null) - `event.prescription_identity.prescriber_npi` (string, required) - `event.prescription_identity.written_date` (string, required) - `event.prescription_identity.drug_ndc` (string, required) - `event.pharmacy_npi` (string, required) The NPI of the Gifthealth pharmacy that is managing this prescription. - `event.occurred_at` (string, required) The time that the event happened. - `event.api_version` (string, required) The version of the API when this event was published. This is specified by the subscription under which the event was published. To get events for a newer API version, cancel the existing subscription for the script and then create a new one through the newer API version. - `event.subscription_id` (string, required) The subscription that triggered this event to be published. - `event.payload` (any, required) Additional information about the event. This will be an empty object ({}) if there is no additional information for the event type. ## Response 401 fields (application/json): - `error` (string) ## Response 404 fields (application/json): - `error` (string)