Skip to main content
POST
/
registered_url_for_prescription_communication_events
Prescription Communication Event
curl --request POST \
  --url https://{partner_host}/registered_url_for_prescription_communication_events \
  --header 'Content-Type: application/json' \
  --data '
{
  "service": "prescription",
  "event": "prescription.communication",
  "event_time": 1782207271381,
  "transaction_id": "2f924bba-e055-4b45-8b7d-f8e1259ec01a",
  "business_id": "7177796085787388",
  "data": {
    "appointment_id": "d-149c99c8-9f02-4300-8528-d602da6311ad",
    "clinic_id": "c-603d3b6ed2d1496ca0fe6d82",
    "doctor_id": "do1777976297512",
    "patient_id": "178153131932085",
    "prescription_id": "P-DW-198A8DA9-6B88-5A88-9C38-2407352F28E9",
    "prescription_url": "https://prescription-store-s3.eka.care/P-DW-198A8DA9-6B88-5A88-9C38-2407352F28E9.pdf?v=1782207271381",
    "actor_oid": "177796085790372",
    "doc_name": {
      "salutation": "Dr.",
      "first_name": "Shreya",
      "last_name": "Gupta"
    },
    "patient_name": {
      "salutation": "",
      "first_name": "test",
      "last_name": ""
    }
  },
  "timestamp": 0,
  "client_id": ""
}
'

Body

application/json
service
string
required

Service that emitted the event

Example:

"prescription"

event
enum<string>
required

Type of event

Available options:
prescription.communication
event_time
integer
required

Event occurred timestamp in milliseconds

Example:

1782207271381

transaction_id
string
required

Unique transaction identifier for the event

Example:

"2f924bba-e055-4b45-8b7d-f8e1259ec01a"

business_id
string
required

Business ID for the prescription

Example:

"7177796085787388"

data
object
required
timestamp
integer

Timestamp of the event

Example:

0

client_id
string

Client ID for the prescription

Example:

""

Response

200 - undefined