Membership Contracts
Cancel membership/subscription contract
Cancels a membership/subscription contract and sends cancellation confirmation emails. This endpoint terminates the recurring subscription and processes all cancellation workflows.
Full behavior, validation rules, and side effects
Cancellation Process:
- Contract Termination: Marks subscription as cancelled in Shopify
- Billing Stop: Prevents future billing attempts
- Email Notification: Sends cancellation confirmation to customer
- Activity Logging: Records cancellation event with source and feedback
- Feedback Capture: Optional cancellation reason for analytics
Key Features:
- Immediate Cancellation: Stops subscription processing immediately
- Feedback Collection: Capture customer cancellation reasons
- Automated Emails: Customer receives cancellation confirmation
- Activity Tracking: Logs cancellation to activity history
- Source Attribution: Tracks whether cancellation came from customer portal or API
Validation Checks:
- Contract Ownership: Verifies contract belongs to authenticated shop
- Minimum Cycles: Checks if minimum billing cycles requirement is met (if configured)
- Freeze Status: Validates subscription is not frozen
- Existing Status: Ensures contract is not already cancelled
Email Notifications:
- Sends cancellation confirmation to customer email
- Includes subscription details and cancellation date
- Uses customizable email templates from shop settings
Use Cases:
- Allow customers to cancel from custom portals or mobile apps
- Bulk cancellation workflows via external systems
- Integration with customer service platforms
- Automated cancellation based on business rules
- Churn management and retention workflows
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
DELETE
Cancel membership/subscription contract
Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Path Parameters
Membership contract ID to cancel
Query Parameters
API Key (Deprecated - Use Header X-API-Key instead)
Optional cancellation reason/feedback from customer
Response
Subscription successfully cancelled, confirmation email sent