In certain circumstances, an employee may need to cancel a time-off request that they have already submitted and approved. However, employees won’t be able to cancel approved time-off requests. The manager, accountant, or employer has the power to cancel. This guide will look at using the API to cancel a PTO request.

CloudApper-Solution-Community-for-UKG

AI Platform

UKG Technology Partner

Need something UKG doesn't do out of the box? We build it.

We require the ID associated with that specific PTO request to cancel it. The ID is available in the PTO request response body.

CloudApper-Solution-Community-for-UKG

AI Platform

UKG Technology Partner

Get expert help getting the most out of UKG.

CloudApper-Solution-Community-for-UKG

AI Platform

UKG Technology Partner

Get hands-on help customizing and extending UKG.

Once we get that ID, we can now move forward with that PTO request cancellation. The API Endpoint for PTO Cancellation is https:/{{hostname}}/api/v1/scheduling/timeoff/apply_update

The method is POST and the request body is-

CloudApper-Solution-Community-for-UKG

AI Platform

UKG Technology Partner

Your dedicated partner for getting more from UKG.

CloudApper-Solution-Community-for-UKG

AI Platform

UKG Technology Partner

Custom UKG solutions, built around exactly what you need.

The PTO ID should go under “timeOffRequestId” hould. The name of the status should be Cancelled, and the cancellation Id is 8. We will get a Success response body once we set up everything and post this request body. And the PTO request will be canceled.