Cancel In-App purchase user renewal subscription programatically

Is there any way to cancel a subscription renewal from my server?. I have the information about the purchases on my server, transaction IDs and those things but I can't find a way to cancel the subscription renewal from my server.