Skip to main content

Cancel Appointment


Use Cancel Appointment to cancel a scheduled appointment or pending request.

Cancellation availability, late-cancellation rules, and reason options derive from the appointment state and cancellation configuration.



This screen includes:

#ElementDescription
1Cancellation reason selectorDisplays available cancellation reasons
2Free-text reason fieldDisplays when Other is selected
3Late cancellation noticeDisplays charge information when applicable
4Confirm cancellation actionSubmits the cancellation request
5Keep appointment actionDismisses the cancellation flow
6Confirmation stateDisplays successful cancellation state
7Read-only stateDisables actions after cancellation or expiry

Workflow

  1. Open Appointment Details.
  2. Select Cancel request or Cancel appointment.
  3. Render cancellation configuration.
  4. Select a cancellation reason.
  5. Enter additional details when required.
  6. Display late cancellation notice when applicable.
  7. Submit the cancellation request.
  8. Refresh the appointment state.

Cancellation behavior

ScenarioBehavior
Pending request inactiveTransition request to expired state
Late cancellation window reachedDisplay charge notice
Appointment canceledDisable appointment actions
Alternative visit supportedDisplay alternative visit dialog

Validations

These scenarios define when the SDK blocks cancellation submission or returns validation state.

ScenarioApp BehaviorSDK Output
No cancellation reason selected.The primary action remains disabled.Validation state indicating missing cancellation reason.
Reason is Other (please specify) and text is empty.The primary action remains disabled and the text box shows an inline error.Validation error for missing free-text reason.
Reason is not Other (please specify).The text box remains hidden.Page model without free-text field.
Cancellation occurs inside the late cancellation window.The screen displays a charge notice before final confirmation.Page model with late-cancellation flag and charge notice content.
Appointment state does not allow cancellation.Cancellation remains blocked and an error appears.Error state indicating cancellation is not permitted.
Appointment already canceled or expired.Actions remain disabled.Appointment state canceled or expired with read-only actions.

Actions

These scenarios define how the SDK applies cancellation or returns expiration state.

ScenarioApp BehaviorSDK Output
Open cancellation flow.The cancellation UI renders with available reasons.Page model for cancellation with reason options.
Select a cancellation reason.The selection updates.Update set with selected reason state.
Enter free-text reason.The free-text value updates.Update set with free-text reason value.
Confirm cancellation with valid input.The appointment transitions to canceled and becomes read-only.Update set with appointment state canceled and navigation back to details.
Pending request reaches inactivity timeout.The item becomes read-only in appointment details.Appointment state expired with actions disabled.
Cancellation request fails.The screen remains open and an error appears.Error state with no navigation instruction.

Endpoint Resources

Cancel Appointment

PUT 

v3/appointments/{appointment-id}/cancel

Returns the cancellation popup for the selected appointment.

Looking for Alternative

PUT 

v3/appointments/{appointment-id}/cancel/looking-for-alternative

Shows an info popup that the platform continues looking for an alternative video visit.

Update Reason

PATCH 

v3/appointments/{appointment-id}/cancel/change-reason

Updates the selected cancellation reason and refreshes the popup content.

Cancel Appointment

POST 

v3/appointments/{appointment-id}/cancel

Cancels the appointment with the provided reason, date, and comments.