I’m trying to find how to delete a subscription. And I want to do it without the URL Technique like the app provides a link to user which takes the user to Google App Store and from there the user can cancel the subscription.
The case that I have is that when a user deletes his account we have to remove or cancel all his subscription as well as delete all his data from RevenueCat behind the scenes. And I can’t simply call the DELETE API ENDPOINT because It won’t delete the subscription data, and I have to first cancel subscriptions then, have to call the DELETE endpoint.
And for that I was searching I found the following `API End point`
`https://api.revenuecat.com/v1/subscribers/{app_user_id}/subscriptions/{store_transaction_identifier}/cancel`
However this endpoint seems to requires a parameter named `store_transaction_identifier`.
Then I searched how to get that. And the answer that I got that `You can find the store_transaction_id, from Webhook`.
Now I had to find the RevenueCat’s webhook, Which I wasn’t able to find and not able to find the variable.
Anybody know how to get that `store_transaction_id`?
Now it has become a pain just to cancel a subscription, that shouldn’t be…
I need a way to cancel a user’s subscriptions from Back-end just by hitting an API Endpoint.
OR It would be nice If We just get an Endpoint where we just provide the user_id and ask revenue cat to delete all the subscriptions in just one go...