Actions116
- 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
- Email Campaign Excluded Plan Actions
- Email Campaign List Actions
- Email Campaign Plan Actions
- Email List Actions
- Enroll 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 to manage various resources, including courses. Specifically, for the Course resource and the Price operation, it allows users to set or update pricing details of a course. This includes defining the course price, specifying the maximum number of payment installments allowed, and indicating whether those installments include interest.
This node is beneficial in scenarios where course pricing needs to be dynamically managed or updated within an automated workflow, such as:
- Updating course prices based on promotions or seasonal discounts.
- Configuring installment payment options for courses.
- Automating course price adjustments when syncing with external systems.
For example, an education platform could use this node to automatically update the price and payment terms of a course whenever a new pricing strategy is launched.
Properties
| Name | Meaning |
|---|---|
| Course ID | The unique identifier of the course to update the price for. |
| Price | The monetary price of the course (supports two decimal places). |
| Max Number of Installments | The maximum number of payment installments allowed for purchasing the course. |
| 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 course. This typically includes confirmation of the updated price details, such as the course ID, new price, installment settings, and any relevant status messages returned by the Mindz API.
If the node supports binary data output (not indicated here), it would generally represent downloadable content or files related to the course pricing update, but this is not applicable for the Price operation.
Dependencies
- Requires an active connection to the Mindz API via an OAuth2-based API key credential.
- The node depends on the Mindz API being accessible and properly authenticated.
- No additional environment variables are explicitly required beyond the API authentication setup.
Troubleshooting
Common Issues:
- Invalid or missing Course ID: Ensure the Course ID provided exists and is correctly formatted.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network connectivity problems: Confirm that the n8n instance can reach the Mindz API endpoint.
Error Messages:
- "Unauthorized" or "Authentication failed": Check API credentials and refresh tokens if necessary.
- "Course not found": Verify the Course ID is correct and the course exists in the Mindz system.
- "Invalid price value": Ensure the price is a positive number with up to two decimal places.
- "Installment parameters invalid": Confirm that the max number of installments is a non-negative number and that the interest flag is boolean.
Resolving these usually involves validating input parameters, checking API credentials, and ensuring network access.
Links and References
- Mindz API Documentation (hypothetical link as no real URL provided)
- n8n Documentation on Creating Custom Nodes
- General information on Handling API Authentication in n8n