Mindz icon

Mindz

Interact with Mindz API

Actions115

Overview

The "Add Product" operation under the "Subscription" resource in this Mindz node allows users to add a specific product to an existing subscription plan. This is useful in scenarios where you want to dynamically enhance or modify a user's subscription by associating additional products without creating a new subscription from scratch.

Practical examples include:

  • Adding a new course or digital product to a subscriber's existing subscription plan.
  • Upselling or cross-selling additional products to current subscribers.
  • Managing subscription contents programmatically based on user actions or business logic.

Properties

Name Meaning
Subscription Plan ID The unique identifier of the subscription plan to which the product will be added.
Product ID The unique identifier of the product that should be added to the specified subscription.

Output

The node outputs JSON data representing the result of the "Add Product" operation. Typically, this includes confirmation details such as the updated subscription information or status messages indicating success or failure of adding the product.

If the node supports binary data output (not evident from the provided code), it would represent any files or attachments related to the subscription or product addition process. However, no explicit binary output handling is shown in the source.

Dependencies

  • Requires an API authentication token credential configured in n8n to interact with the Mindz API.
  • Depends on the Mindz platform's API endpoints for managing subscriptions and products.
  • No other external dependencies are indicated in the provided source.

Troubleshooting

  • Common Issues:

    • Invalid or missing Subscription Plan ID or Product ID can cause the operation to fail.
    • Network or authentication errors if the API key or OAuth2 credentials are not properly set up.
    • Attempting to add a product that is already part of the subscription might result in an error or no change.
  • Error Messages:

    • Errors related to authorization typically indicate misconfigured or expired credentials; re-authenticate or update credentials.
    • Validation errors about IDs usually mean the provided Subscription Plan ID or Product ID does not exist or is malformed; verify these values.
    • API rate limits or service unavailability errors require retrying after some time or checking Mindz service status.

Links and References

  • Mindz API Documentation (general reference for subscription and product management)
  • n8n Documentation on creating and using custom nodes with API credentials
  • OAuth2 Authentication setup guides in n8n

Discussion