There is now API for showing an Apple-managed UI on your UIWindowScene for managing subscriptions (https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions) but I don't think you can display your own UI for cancelling or programmatically cancel without interaction.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: