How to remove a paid plan from a Memberstack user via API in a mobile app? Answered

Post author
Muhammad Shahshan

Hey everyone ๐Ÿ‘‹

Iโ€™m currently integrating Memberstack for a mobile app. I was able to build the purchase journey which successfully adds a paid plan to a user.

Now Iโ€™m working on the cancellation journey, but from what I understand, there doesnโ€™t seem to be a way to remove a paid plan from a customer through the API or any method.

Can anyone confirm if this is the case? And if so, is there a workaround or possibility of such a method existing in the future?

๐Ÿ‘‰ Note: Iโ€™m not using Webflow โ€” this is for a mobile app where my backend communicates directly with Memberstack.

Thanks in advance! ๐Ÿ™

Comments

3 comments

  • Comment author
    A J

    Hey Muhammad Shahshan,

    The straight-forward way to cancel a member's paid plan would be to cancel it via Dashboard as an admin or let the members cancel it from their end. Here's a guide on it as well.

    That being said, alternatively if for your project, a user is assigned only one paid plan at a time, and the plan is a recurring one, a workaround could be that you add a free plan to such user via API and setup a plan logic in Memberstack dashboard, to cancel all recurring plans when the said free plan is assigned to a user. Hope this gives you some idea.

    0
  • Comment author
    Muhammad Shahshan

    Thanks A J ๐Ÿ™ I just had one more question for clarification.
    If I cancel a subscription directly in the Stripe dashboard, will the corresponding plan be removed from Memberstack automatically? Or do I also need to go into Memberstack, navigate to the memberโ€™s plan, and delete it manually by pressing the delete icon?

    If Memberstack automatically updates via a webhook from Stripe, then Iโ€™ll focus on locating the product in Stripe and using the Stripe Cancel API instead.

    0
  • Comment author
    A J

    Welcome ๐Ÿ˜‡

    Stripe acts as a source of truth, so if you cancel the customer's subscription in Stripe, Memberstack will respect those changes and mark the plan as cancelled in the dashboard as well. You can also test it out to see how it works and if it fits for your use-case. Hope this helps.

    0

Please sign in to leave a comment.