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 MindzPay Subscription node's "Get Stats" operation retrieves statistical data related to a specific MindzPay subscription account. This node is useful for users who want to monitor or analyze subscription metrics such as usage, payments, or other relevant statistics associated with their MindzPay account.
Practical examples include:
- Fetching subscription statistics to generate reports on user engagement or revenue.
- Monitoring subscription performance over time to optimize marketing or service offerings.
- Integrating subscription stats into dashboards for real-time business insights.
Properties
| Name | Meaning |
|---|---|
| Account ID | The ID of the MindzPay account to retrieve statistics for. |
Output
The output JSON contains the statistical data retrieved from the MindzPay API for the specified subscription account. This typically includes various metrics and figures that describe the state or performance of the subscription.
If the node supports binary data (not explicitly shown in the provided code), it would represent any files or attachments related to the subscription stats, but this is not indicated here.
Dependencies
- Requires an API key credential for authenticating with the Mindz API.
- The node depends on the MindzPay Subscription resource implementation (
mindzPaySubscriptionExecutefunction) which handles the actual API call. - Proper configuration of the Mindz OAuth2 API credentials within n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Account ID: Ensure the Account ID is correctly provided and corresponds to an existing MindzPay account.
- Authentication errors: Verify that the API key or OAuth2 credentials are valid and have sufficient permissions.
- Network or API downtime: Check connectivity and Mindz API status if requests fail.
Error messages:
- "Unauthorized" or "Authentication failed": Indicates invalid or expired credentials; reauthenticate or update credentials.
- "Account not found": The provided Account ID does not exist; double-check the ID.
- "Rate limit exceeded": Too many requests sent in a short period; implement retry logic or reduce request frequency.
Links and References
- Mindz API Documentation (hypothetical link)
- n8n documentation on Creating Custom Nodes
- OAuth2 authentication setup in n8n: OAuth2 Credentials