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
The "Lectful Central" node integrates with the Lectful Central API to perform various administrative operations. Specifically, the Coupon Management - List Coupons operation retrieves a paginated list of coupons from the system, optionally filtered by status, price ID, or search terms.
This node is useful for administrators or automation workflows that need to manage or audit coupon data programmatically. For example, you can use it to:
- Retrieve all active coupons to monitor ongoing promotions.
- Search for coupons related to a specific price or product.
- Export coupon data for reporting or integration with other systems.
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) |
| Base URL Override | Optional base URL to override the credential setting (used only in Manual Configuration mode). Should not include /api/v1. |
| API Key Override | Optional API key to override the credential setting (used only in Manual Configuration mode). |
| Status | Filter coupons by their status: - Active - Expired - Used |
| Price ID Filter | Filter coupons by a specific price ID (numeric). |
| Search | Search coupons by token or description (text string). |
Output
The output is an array of JSON objects representing the coupons retrieved from the Lectful Central API. Each item corresponds to one coupon record as returned by the API's /admin/coupons endpoint.
The exact structure of each coupon object depends on the API response but typically includes fields such as coupon token, status, associated price ID, expiration date, description, and metadata.
No binary data is output by this operation.
Dependencies
- Requires access to the Lectful Central API.
- Authentication can be provided either via stored credentials configured in n8n or manual entry of the Base URL and API key.
- The node expects the API to be reachable at the specified Base URL with valid authentication tokens.
- No additional external dependencies are required.
Troubleshooting
Missing or Invalid Credentials:
If using stored credentials, ensure they are correctly configured with a valid Base URL and API key. If using manual mode, both Base URL Override and API Key Override must be provided. Errors will be thrown if these are missing.API Connectivity Issues:
Network issues or incorrect Base URL may cause request failures. Verify the Base URL is correct and accessible.Invalid Filters:
Providing invalid filter values (e.g., non-numeric Price ID) may result in API errors or empty results.Empty Results:
If no coupons match the filters, the output will be an empty array. Adjust filters accordingly.Error Messages:
Common error messages include:"Base URL Override is required when using Manual Configuration mode": Provide the Base URL Override parameter."API Key Override is required when using Manual Configuration mode": Provide the API Key Override parameter."Valid credentials are required...": Check your stored credentials or switch to manual mode.
Links and References
- Lectful Central API Documentation (Assumed link; replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- General REST API usage best practices
If you need details on other operations or resources, feel free to ask!