Cancel a customer's membership

Cancel a customer's membership

Cancel a Membership from the Storefront

If you want customers to cancel their own membership right from your theme, you can call our app-proxy endpoint. It only works for the customer who’s currently logged in.

fetch(`${window.Rivo.loy_config.api_endpoint}/membership/cancel_subscription`, {
  method: 'POST',
  body: {}
})
.then(response => response.json())
.then(data => {
  console.log(data);
})

This is handy if you're building your own cancellation flow or dropping the action into an account page or settings modal. For anything else, please use the API below.

Language
Click Try It! to start a request and see the response here!