Cancel a customer's membership

Cancel a customer's membership

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

Path Params
string
required

Shopify Customer ID or Email

Query Params
string
enum

When to cancel the membership

Allowed:
Headers
string
required

Merchant Auth Token

Response
204

Cancel a customer's membership

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