---
title: "Prescription Created Event"
method: POST
path: "/registered_url_for_prescription_events"
tags: ["Prescription Webhooks"]
---

# Prescription Created Event

`POST /registered_url_for_prescription_events`

When a prescription is created or modified, a webhook event is sent to registered webhooks with details about the prescription, including the prescription ID, visit ID, doctor ID, patient ID, and event type.

The receiver can then use the `prescription_id` from webhook events to retrieve the details of a specific prescription by calling the prescription API.

## Request body

- object
  - `event` 'prescription.created' | 'prescription.updated', required
  - `event_time` integer, required — Event occured timestamp
  - `timestamp` integer, required — Timestamp of the event
  - `client_id` string, required — Client ID for the appointment
  - `business_id` string, required — Business ID for the appointment
  - `data` object, required
    - `prescription_id` string, required — Prescription ID
    - `doctor_id` string, required — Identifier for the doctor in Eka
    - `partner_doctor_id` string — Identifier for the partner's doctor
    - `patient_id` string, required — Identifier for the patient in Eka
    - `current_version` string
    - `previous_version` string
    - `prescription_url` string
    - `prescription_url_print` string
    - `partner_patient_id` string — Identifier for the partner's patient
    - `clinic_id` string, required — Identifier for the clinic in Eka
    - `partner_clinic_id` string — Identifier for the partner's clinic
    - `partner_appointment_id` string — Identifier for the partner's appointment
    - `action` 'created' | 'updated', required
    - `created_at` integer, required — Creation timestamp in ISO format
    - `modified_at` integer, required — Modification timestamp in ISO format
    - `partner_meta` object — Partner-specific metadata
      - `key1` string — key-value specified by partner

## Response `200`

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
