Mindz icon

Mindz

Interact with Mindz API

Actions116

Overview

The "Add Product" operation under the "Subscription" resource in this Mindz node allows users to add a product to an existing subscription plan. This is useful for managing subscription contents dynamically, such as when you want to enhance or modify a user's subscription by including additional products without creating a new subscription from scratch.

Practical scenarios include:

  • Adding a new course or digital product to a subscriber's current subscription.
  • Upselling or cross-selling additional products within an active subscription.
  • Managing bundled offerings where products can be added or removed based on user preferences or promotions.

Properties

Name Meaning
Subscription Plan ID The unique identifier of the subscription plan to which a 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 about the updated subscription, such as the subscription ID, the list of products now included, and any status messages returned by the Mindz API.

If the operation supports binary data output (not indicated here), it would typically represent files or media related to the subscription or product, but this node primarily deals with JSON responses.

Dependencies

  • Requires an API authentication token configured via OAuth2 credentials to connect securely to the Mindz API.
  • The node depends on the Mindz platform's API endpoints for subscriptions and products.
  • Proper configuration of the Mindz OAuth2 credential in n8n is necessary for successful execution.

Troubleshooting

  • Common Issues:

    • Invalid or missing Subscription Plan ID or Product ID parameters will cause the operation to fail.
    • Authentication errors if the OAuth2 credentials are not set up correctly or have expired.
    • Network or API endpoint issues may cause timeouts or connection failures.
  • Error Messages:

    • "Subscription Plan ID is required" — Ensure the Subscription Plan ID field is filled.
    • "Product ID is required" — Ensure the Product ID field is provided.
    • "Authentication failed" — Verify that the OAuth2 credentials are valid and have the necessary permissions.
    • "Product cannot be added to subscription" — Check if the product is compatible with the subscription or if there are restrictions on adding products.

Resolving these usually involves verifying input parameters, refreshing or reconfiguring credentials, and checking the Mindz API status.

Links and References

Discussion