Permanently cancels an active membership contract in Shopify. This operation stops all future billing and marks the membership as CANCELLED.
Important Notes:
Customer Portal Restrictions: When called from customer portal, additional validations apply:
Cancellation Feedback:
cancellationFeedback parameter to capture why customer is cancellingUse Cases:
Authentication: Requires authenticated shop user or customer portal token
curl --request DELETE \
--url https://www.myshop.com/apps/memberships/cp/api/subscription-contracts/{id}Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Membership contract ID to cancel
Optional cancellation reason/feedback from customer
Optional cancellation note with additional details
Membership successfully cancelled (no content returned). Cancellation email sent to customer.
curl --request DELETE \
--url https://www.myshop.com/apps/memberships/cp/api/subscription-contracts/{id}