Actions115
- 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
- Enroll Actions
- Email Campaign Excluded Plan Actions
- Email Campaign List Actions
- Email Campaign Plan Actions
- Email List Actions
- MindzPay Account Actions
- MindzPay Invoice Actions
- MindzPay Payment Actions
- MindzPay Subscription Actions
- Subscription Actions
- Team Actions
- User Actions
Overview
The node interacts with the Mindz API, specifically handling operations related to various resources including bundles. For the Bundle resource and the Price operation, it allows users to set or update pricing details of a bundle product. This is useful in scenarios where you manage digital or physical product bundles and need to programmatically adjust their prices, payment terms, or installment options.
Practical examples include:
- Updating the price of a course bundle after a promotional discount.
- Setting up payment plans with a maximum number of installments and specifying whether those installments accrue interest.
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 if the installments should include interest charges. |
Output
The node outputs JSON data representing the result of the price update operation on the specified bundle. This typically includes confirmation details such as the updated price, installment settings, and possibly the bundle's identifier or status.
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.
Dependencies
- Requires an active connection to the Mindz API via an OAuth2-based API key credential.
- The node depends on the bundled resource implementations, particularly the
bundleExecutefunction from the bundle resource module. - Proper configuration of the Mindz API credentials within n8n is necessary for authentication.
Troubleshooting
Common Issues:
- Invalid or missing Bundle ID will cause the operation to fail.
- Incorrect API credentials or expired tokens will prevent successful communication with the Mindz API.
- Providing invalid values for price or installments (e.g., negative numbers) may result in errors.
Error Messages:
- Authentication errors usually indicate issues with the API key or OAuth token; re-authenticate or update credentials.
- Validation errors might mention required fields or invalid parameter formats; ensure all required properties are correctly filled.
- Network or timeout errors suggest connectivity problems; verify network access to the Mindz API endpoint.
Links and References
- Mindz API Documentation (Replace with actual URL)
- n8n OAuth2 Credential Setup Guide: https://docs.n8n.io/credentials/oauth2/
- n8n Custom Node Development: https://docs.n8n.io/integrations/creating-nodes/