POST
/
registered_url_for_add_appointment_events
Create appointment
curl --request POST \
  --url https://{partner_host}/registered_url_for_add_appointment_events \
  --header 'Content-Type: application/json' \
  --data '{
  "service": "appointment",
  "event": "appointment.created",
  "transaction_id": "8y3458734657",
  "event_time": 1730189586,
  "timestamp": 1730189586,
  "client_id": "67978400352a61001d64e9fb",
  "business_id": "174159057718553",
  "data": {
    "appointment_id": "api-abb67007-1e53-4f0f-b428-a4bc025468a4",
    "partner_appointment_id": "67ce9032abfba8001d17ddd2",
    "doctor_id": "174159057723920",
    "partner_doctor_id": "test-doc-123",
    "patient_id": "174678912588458",
    "partner_patient_id": "174678912588458",
    "clinic_id": "67978400352a61001d64e9fb",
    "partner_clinic_id": "CL04",
    "status": "BK",
    "action": "created",
    "created_at": 1730189586,
    "modified_at": 1730189586,
    "custom_attributes": {
      "label": [
        "vital_submitted"
      ]
    },
    "partner_meta": {
      "key1": "value1"
    },
    "sa_ids": [
      "sa_25061014072610653"
    ]
  }
}'

Body

application/json
event
string
required

Type of event

Example:

"appointment.created"

event_time
integer
required

Event occured timestamp

Example:

1730189586

timestamp
integer
required

Timestamp of the event

Example:

1730189586

client_id
string
required

Client ID for the appointment

Example:

"67978400352a61001d64e9fb"

business_id
string
required

Business ID for the appointment

Example:

"174159057718553"

data
object
required
service
string

Type of serivce

Example:

"appointment"

transaction_id
string

Transaction ID for the appointment

Example:

"8y3458734657"