I need to cancel an Apple API subscription from backend (when a user deletes their account for example).
There is an API call to verify receipts, but I cannot find one to cancel. I looked at apple developer doc but could not find it.
Is there such an API? If not, what is the correct way to do this?
Unfortunately, there is no API to cancel a subscription. User have to do it themselves in the manage subscription screen. For their convenience, you could provide a link to that screen in your app or via an email.