New Patient
Sent when a patient is created.
When it’s sent
- A new patient is added.
type is NEW_PATIENT. See the introduction to subscribe to this event and verify the X-Hub-Signature-256 signature.
phone is the full number with the country code, and mobile is the number without it. Linked records such as insurance_company_data are sent as an empty object {} when not set.Headers
HMAC SHA-256 of the raw request body, keyed with your Verify Token, as sha256=<hex>. Sent only when a Verify Token is set.
"sha256=3f1c5e…"
Body
Sent when a patient is created.
Payload version.
v1.0 "v1.0"
Event type.
NEW_PATIENT "NEW_PATIENT"
Patient ID.
"ckx1p0000001"
First and last name.
"Sara Ahmed"
Patient file number.
"P-00017"
Patient reference number.
1017
National ID.
"1098765432"
Notes about the patient.
"Prefers morning appointments"
Full phone number (country code + number).
"+966501234567"
Phone number without the country code.
"501234567"
Country.
"SA"
Address.
"King Fahd Road, Riyadh"
Email address.
"patient@example.com"
Gender.
"female"
Date of birth.
"1990-05-14T00:00:00.000Z"
Branch the patient belongs to.
Insurance company.
Insurance policy. name is the policy holder name.
Insurance policy class.
Referral source (how the patient heard about the clinic).
Response
Return any 2xx status within 5 seconds to acknowledge the event. Failed deliveries are not retried.