Actions116
- Course Actions
- Bundle Actions
- Course Grade Actions
- Course Grade Detail Actions
- Course Teacher Actions
- Email Actions
- Email Campaign Actions
- Email Campaign Course Actions
- Email Campaign Excluded Course Actions
- Email Campaign Excluded List Actions
- Email Campaign Excluded Plan Actions
- Email Campaign List Actions
- Email Campaign Plan Actions
- Email List Actions
- Enroll Actions
- MindzPay Account Actions
- MindzPay Invoice Actions
- MindzPay Payment Actions
- MindzPay Subscription Actions
- Subscription Actions
- Team Actions
- User Actions
Overview
The "Remove Product" operation under the "Subscription" resource allows users to remove a specific product from an existing subscription plan in the Mindz system. This node is useful for managing subscription contents dynamically, such as when a customer no longer requires access to a particular product or service bundled within their subscription.
Practical scenarios include:
- Adjusting subscription offerings by removing products that are no longer relevant to the subscriber.
- Managing billing and access control by updating subscription plans without deleting the entire subscription.
- Automating subscription maintenance workflows where products need to be added or removed based on user actions or business rules.
Properties
| Name | Meaning |
|---|---|
| Subscription Plan ID | The unique identifier of the subscription plan from which a product will be removed. |
| Product ID | The unique identifier of the product to be removed from the specified subscription plan. |
Output
The node outputs JSON data representing the result of the removal operation. Typically, this includes confirmation details such as success status, updated subscription information, or error messages if the removal failed.
If the node supports binary data output (not indicated explicitly here), it would generally relate to downloadable receipts or logs, but this is not evident from the provided code.
Dependencies
- Requires an active connection to the Mindz API via an OAuth2-based API key credential.
- The node depends on the Mindz API endpoints related to subscriptions and products.
- Proper configuration of the Mindz OAuth2 credentials in n8n is necessary for authentication and authorization.
Troubleshooting
Common Issues:
- Invalid or missing Subscription Plan ID or Product ID can cause the operation to fail.
- Insufficient permissions or expired API tokens may lead to authentication errors.
- Attempting to remove a product that is not part of the subscription might return an error or no changes.
Error Messages:
- "Subscription Plan ID is required" — Ensure the Subscription Plan ID is provided and correctly formatted.
- "Product ID is required" — Verify that the Product ID is supplied.
- "Unauthorized" or "Authentication failed" — Check the validity and configuration of the API credentials.
- "Product not found in subscription" — Confirm that the product exists in the subscription before attempting removal.
Resolving these typically involves verifying input parameters, refreshing credentials, and ensuring the product-subscription relationship exists.
Links and References
- Mindz API Documentation (hypothetical link as actual URL is not provided)
- n8n OAuth2 Credential Setup Guide
- Managing Subscriptions with Mindz API (hypothetical)