POST
/
registered_url_for_prescription_events
curl --request POST \
  --url https:///%7B{partner_host}%7D/registered_url_for_prescription_events \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "prescription.created",
  "event_time": 1730189586,
  "timestamp": 1730189586,
  "client_id": "{{client_id}}",
  "business_id": "{{business_id}}",
  "data": {
    "prescription_id": "{{prescription_id}}",
    "doctor_id": "{{doctor_id}}",
    "partner_doctor_id": "{{partner_doctor_id}}",
    "patient_id": "{{patient_id}}",
    "current_version": "2",
    "previous_version": "1",
    "partner_patient_id": "{{partner_patient_id}}",
    "clinic_id": "{{clinic_id}}",
    "partner_clinic_id": "{{partner_clinic_id}}",
    "partner_appointment_id": "{{partner_appointment_id}}",
    "action": "created",
    "created_at": 1730189586,
    "modified_at": 1730189586,
    "partner_meta": {
      "key1": "{{value1}}"
    }
  }
}'

Body

application/json
event
enum<string>
required
Available options:
prescription.created,
prescription.updated
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