Mindz icon

Mindz

Interact with Mindz API

Actions116

Overview

The node interacts with the Mindz API, specifically focusing on managing bundles in this context. The "Price" operation for the "Bundle" resource allows users to set or update pricing details of a specific bundle. This is useful in scenarios where you want to programmatically adjust the price of a bundle, define payment installment options, and specify whether those installments include interest.

Practical examples:

  • Updating the price of a course bundle after a promotional discount.
  • Setting up payment plans with a maximum number of installments and indicating if interest applies.
  • Automating bundle price adjustments based on external triggers or business rules.

Properties

Name Meaning
Bundle ID The unique identifier of the bundle to update the price for.
Price The new price value to assign to the bundle (supports two decimal places).
Max Number of Installments The maximum number of payment installments allowed for purchasing the bundle.
Installments With Interest Boolean flag indicating whether the installments will accrue interest (true/false).

Output

The node outputs JSON data representing the result of the price update operation on the specified bundle. This typically includes confirmation of the updated price, installment settings, and possibly metadata about the bundle's pricing state.

If the node supports binary data output, it would relate to any downloadable content or receipts generated by the pricing operation, but this is not indicated in the provided code or properties.

Dependencies

  • Requires an active connection to the Mindz API via an OAuth2-based authentication credential.
  • The node depends on the Mindz API service being available and accessible.
  • Proper configuration of the OAuth2 API credentials within n8n is necessary for successful execution.

Troubleshooting

  • Common Issues:

    • Invalid or missing Bundle ID: Ensure the Bundle ID is correctly provided and corresponds to an existing bundle.
    • Authentication errors: Verify that the OAuth2 credentials are valid and have not expired.
    • Network or API downtime: Check connectivity to the Mindz API endpoint.
  • Error Messages:

    • "Bundle not found": Indicates the provided Bundle ID does not exist; verify the ID.
    • "Unauthorized": Suggests issues with API credentials; reauthenticate or update credentials.
    • "Invalid price value": Occurs if the price is negative or improperly formatted; ensure price is a positive number with up to two decimals.

Resolving these usually involves verifying input parameters, refreshing credentials, and ensuring network stability.

Links and References

Discussion