Cancel Appointment Action

Cancel an existing appointment.

This action is available in API version 65.0 and later.

Supported REST HTTP Methods 

URI: /services/data/vXX.X/connect/health/appointment-management/appointment/{id}

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: PATCH

Authentication: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

Inputs 

InputTypeDescription
cancellationReasonStringReason for the cancellation.
commentStringAdditional notes or comments for the cancellation.
idStringRequired
Unique identifier of the appointment to update. This is part of the request URL.
statusStringRequired
New status for the appointment. Must be a valid cancellation status such as Cancelled.

Outputs 

OutputTypeDescription
errorMessagesArrayA list of errors, if any occurred.
idStringThe id of the Appointment.
isSuccessBooleanIndicates whether the appointment was cancelled successfully or not.
statusStringThe status of the Appointment, like Scheduled, Rejected.

Usage 

PATCH

This sample request is for the Cancel Appointment action.

1{
2    "id": "08xxG000000Axx6YAC",
3    "status": "Cancelled",
4    "cancellationReason": "Patient requested cancellation.",
5    "comment": "Patient will call back to reschedule."
6}

This sample response is for the Cancel Appointment action.

1{
2    "id": "08pxx000000Axx6YAC",
3    "isSuccess": true,
4    "status": "Cancelled",
5    "errorMessages": []
6}