Mindz icon

Mindz

Interact with Mindz API

Actions116

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

Discussion