Skip to main content

Visit Type Changed

The VISIT_TYPE_CHANGED event is triggered whenever the visit type on a case is changed.

Attributes

eventstring
The name of the event that was triggered. For this webhook, the value will always be `VISIT_TYPE_CHANGED`.
payloadobject
The main object containing all data related to the event.
Show child attributes
caseobject
An object containing the full details of the case at the time of the event.
Show child attributes
idstring<UUID>
The unique identifier for the case.
typestring
The type or category of the case (e.g., "GLP").
titlestring
The title of the case.
statusstring
Allowed values:OPEN,ASSIGNED,IN_PROGRESS,APPROVED,REJECTED,NO_DECISION
The current status of the case.
shortIdstring
A short, human-readable identifier for the case.
createdAtstring<date-time>
The timestamp when the case was created.
updatedAtstring<date-time>
The timestamp when the case was last updated.
assignedAtstring<date-time>
The timestamp when an assignee was first added to the case.
inProgressAtstring<date-time>
The timestamp when the case status changed to "IN_PROGRESS".
closedAtstring<date-time>
The timestamp when the case was closed. null if still open.
isArchivedboolean
Indicates if the case is closed/archived.
isEscalatedboolean
Indicates if the case is escalated.
isImportedboolean
Indicates if the case is imported from outside.
referralCodestring
Indicates if user have any referralCode.
closedBystring
The unique identifier for the user that case mark close.
inProgressBystring
The unique identifier for the user which make case in InProgress.
organizationIdstring<UUID>
The unique identifier for the case belongs which organization.
archiveReasonstring
Allowed values:COMPLETE,INELIGIBLE
Indicates if the case is archived any reason status.
archiveNotestring
Indicates if the case is archived any reason for it, null if still open.
productBundleIdstring<UUID>
The unique identifier for the case belongs which product bundle.
productBundleobject
Details about the product bundle associated with the case.
Show child attributes
namestring
Indicates case product bundle name.
submitterobject
An object containing the details of the user who submitted the case.
Show child attributes
idstring
The unique identifier of the submitter.
firstNamestring
The first name of the submitter.
lastNamestring
The last name of the submitter.
emailstring
The email address of the submitter.
dobstring<date-time>
The date of birth of the submitter in ISO 8601 format.
genderstring
The gender of the submitter (e.g., MALE, FEMALE, OTHER).
phoneNumberstring
The phone number of the submitter, including country code.
addressstring
The primary address line of the submitter.
address2string
The secondary address line of the submitter, if applicable.
citystring
The city of the submitter's address.
statestring
The state or province of the submitter's address.
postalCodestring
The postal code of the submitter's address.
callerobject
Details of cancellation if the meeting was cancelled (empty if the meeting is still active).
Show child attributes
idstring<UUID>
The unique identifier of the user who deleted the attachment.
firstNamestring
The first name of the user who deleted the attachment.
lastNamestring
The last name of the user who deleted the attachment.
emailstring
The email address of the user who deleted the attachment.
activityobject
An object that describes the specific action that triggered this webhook.
Show child attributes
idstring<UUID>
The unique identifier for this activity log entry.
typestring
Allowed values:CREATE_CASE,CHANGE_CASE_STATUS,ADD_CASE_COMMENT,DELETE_CASE_COMMENT,ADD_CASE_DECISION,ARCHIVE_CASE,ESCALATE_CASE,DEESCALATE_CASE,ADD_CASE_ESCALATION,REMOVE_CASE_ESCALATION,UPDATE_CASE_ESCALATION,DECISION_DELETED,ADD_CASE_ATTACHMENT,ADD_CASE_ASSIGNEE,REMOVE_CASE_ASSIGNEE,IMPORT_CASE,ADD_FORM_RESPONSE,UPDATE_FORM_RESPONSE,ADD_HR_REP,REMOVE_HR_REP,DELETE_ATTACHMENT,FOLLOWUP_EMAIL,PAYMENT_ADDED,PAYMENT_COMPLETED,PAYMENT_DELETED,PAYMENT_UPDATED,ORDER_CREATED,TEXT_INFO,REOPEN_CASE,SMS_SENT,SMS_RECEIVED,INBOUND_EMAIL,OUTBOUND_EMAIL,FOLLOWUP_FORM,ORDER_STATUS_CHANGED,ORDER_TRACKING_ADDED,PAYMENT_INFO_LINK_SENT,ADD_PAYMENT_INFO_USING_LINK,CALENDAR_EVENT_CREATED,CALENDAR_EVENT_RESCHEDULED,CALENDAR_EVENT_CANCELED,CALENDAR_EVENT_NO_SHOW,CALENDAR_EVENT_NO_SHOW_REMOVED,SUPPORT_NOTE_ADDED,SUPPORT_NOTE_UPDATED,SUPPORT_NOTE_COMPLETED,COMMENT_ACKNOWLEDGED,NOTE_ACKNOWLEDGED,VISIT_TYPE_CHANGED,PAYMENT_PREAUTHORIZED,SUBSCRIPTION_ADDED,SUBSCRIPTION_ACTIVATED,SUBSCRIPTION_COMPLETED,SUBSCRIPTION_PAUSED,SUBSCRIPTION_RESUMED,SUBSCRIPTION_CANCELLED,SUBSCRIPTION_UPDATED
The type of activity.
isPHIboolean
Indicates if the activity contains Protected Health Information (PHI).
isRestrictedboolean
Indicates if the activity details are restricted to internal users due to sensitivity (for example, payment data).
valueBeforestring | null
The previous value before this activity, if any. For this event, usually `null`.
valueAfterstring | null
A short description of the result of the activity, such as `payment info has been added`.
timestampstring<date-time>
The exact timestamp when the activity occurred.
actorobject
The user who performed the action (i.e., who added the new assignee).
Show child attributes
idstring<UUID>
The ID of the actor.
firstNamestring
The first name of the actor.
lastNamestring
The last name of the actor.
emailstring
The email of the actor.
targetUserobject
The user who was the target of the action (i.e., the user who was assigned).
Show child attributes
idstring<UUID>
The ID of the assigned user.
firstNamestring
The first name of the assigned user.
lastNamestring
The last name of the assigned user.
emailstring
The email of the assigned user.

Response

{
"event": "VISIT_TYPE_CHANGED",
"payload": {
"case": {
"id": "5b29e3df-50c1-4471-b03f-68c129e96cc7",
"type": "GLP",
"title": "Test Case",
"status": "APPROVED",
"shortId": "ADA-VZY9QG",
"createdAt": "2025-11-26T12:12:12.729Z",
"updatedAt": "2025-12-19T10:22:29.739Z",
"assignedAt": "2025-11-26T12:15:06.935Z",
"inProgressAt": "2025-11-26T12:15:07.186Z",
"closedAt": "2025-11-26T12:16:25.427Z",
"isArchived": false,
"isEscalated": true,
"isImported": false,
"referralCode": null,
"closedBy": "5CrUoHIzZ5c6uI9iNU20WpOmSxv2",
"inProgressBy": "DgHxzGRtS5gFzdL7cReiPzJcA852",
"organizationId": "8324e1b3-b70d-443e-9375-7291ea9f4661",
"archiveReason": null,
"archiveNote": null,
"productBundleId": "20a533da-23c9-4312-8e26-42253c741d2d",
"productBundle": {
"id": "20a533da-23c9-4312-8e26-42253c741d2d",
"name": "Test Product Bundle"
},
"submitter": {
"id": "luJvTpBcsDh97yBiN4vNEurw61n2",
"firstName": "Test ",
"lastName": "Patient",
"email": "testpatient@carevalidate.com",
"dob": "2000-11-06T00:00:00.000Z",
"gender": "MALE",
"phoneNumber": "+19123341234",
"address": "Random Street",
"address2": "Apt 12",
"city": "City,Ohio",
"state": "OH",
"postalCode": "77001"
}
},
"activity": {
"id": "c8c98db5-a237-4cf6-86e9-76ff66d94529",
"type": "VISIT_TYPE_CHANGED",
"isPHI": false,
"isRestricted": false,
"timestamp": "2025-12-19T10:22:29.744Z",
"valueBefore": "SYNC_VIDEO",
"valueAfter": "SYNC_IN_PERSON",
"actor": {
"id": "DgHxzGRtS5gFzdL7cReiPzJcA852",
"firstName": "Test",
"lastName": "User",
"email": "test@carevalidate.com"
},
"targetUser": null
}
}
}