Actions63
- Authentication Actions
- Tenant Management Actions
- Blog Management Actions
- Image Management Actions
- BuilderX AI Integration Actions
- Form Submissions Actions
- Subscription Management Actions
- Subscription Operations Actions
- Product Family Management Actions
- Feature Management Actions
- Invoice Management Actions
- Payment Management Actions
- Payment Method Management Actions
- Coupon Management Actions
- Health Checks Actions
Overview
This node integrates with the Lectful Central API to manage subscription plans and other administrative resources. Specifically, the Subscription Management - Create Plan operation allows users to create new subscription plans within their product catalog.
Use cases include:
- Automating the creation of subscription plans in a SaaS platform.
- Managing product offerings programmatically without manual intervention.
- Integrating plan creation into workflows that respond to business events (e.g., launching a new product line).
For example, you can use this node to create a new subscription plan named "Pro Plan" under a specific product family, set its description, activate it, and define its display order for customers.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful Central API: - Use Stored Credentials - Manual Configuration (provide base URL and API key manually) |
| Credentials Note | Informational note shown when using Manual Configuration mode about credential usage. |
| Base URL Override | Optional base URL to override the stored credential's base URL (exclude /api/v1). |
| API Key Override | Optional API key to override the stored credential's API key. |
| Plan Name | The name of the subscription plan to create (required). |
| Plan Description | A textual description of the plan (optional). |
| Product Family ID | The numeric ID of the product family this plan belongs to (required). |
| Is Active | Boolean flag indicating whether the plan is active (default: true). |
| Sort Order | Numeric value defining the display order of the plan (default: 1). |
Output
The node outputs an array of JSON objects, each representing the response from the Lectful Central API for the created plan. The JSON structure typically includes details of the newly created plan such as its ID, name, description, product family association, active status, and sort order.
If the API returns a string response, the node attempts to parse it as JSON; otherwise, it outputs the raw string.
No binary data output is produced by this operation.
Dependencies
- Requires access to the Lectful Central API.
- Authentication via either:
- Stored credentials configured in n8n (an API key and base URL).
- Manual configuration by providing base URL and API key directly in the node parameters.
- Network connectivity to the Lectful Central API endpoint.
Troubleshooting
Missing or invalid credentials:
Error if neither stored credentials nor manual overrides are provided or valid. Ensure credentials are correctly configured or manual fields are filled.Base URL or API key missing in manual mode:
The node throws an error if either the Base URL Override or API Key Override is empty when using manual authentication mode.Invalid API responses:
If the API returns non-JSON or unexpected data, the node tries to parse it but may fail silently, returning raw data. Verify API availability and correctness of request parameters.Required fields missing:
The node requiresPlan NameandProduct Family ID. Omitting these will cause errors.Network issues or timeouts:
Connectivity problems to the Lectful Central API will result in request failures. Check network settings and API server status.
Links and References
- Lectful Central API Documentation (Assumed URL, replace with actual if available)
- n8n documentation on Creating Custom Nodes
- General REST API best practices for troubleshooting HTTP requests.
This summary is based on static analysis of the node's source code and provided property definitions, focusing on the Subscription Management resource and Create Plan operation.