How to cancel a Stripe PaymentIntent

On my site, when a user doesn’t complete an action after 48 hours, I need their Stripe Payment Intent (that was created in an earlier step) to be canceled. In my site’s case, The PI does not get captured immediately.

I’m using “Schedule an API workflow” to schedule it in 48 hours, but how do I tell Stripe to cancel the PI? On the plugin, there is the option to cancel an invoice, however not a Payment Intent.

Thanks ahead,