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 interacts with the Lectful Central API to perform administrative operations related to coupon management, among many other resources. Specifically, the Validate Coupon operation allows users to verify the validity of a coupon token during tenant registration or other workflows where coupon validation is required.
Typical use cases include:
- Validating a coupon code entered by a user during sign-up or checkout.
- Automating coupon verification in workflows that integrate with Lectful Central.
- Ensuring coupons are active and applicable before applying discounts or benefits.
For example, when a new tenant registers on a platform, this node can be used to validate the coupon token they provide, ensuring it is valid and has not expired or been used.
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 | Notice shown when using Manual Configuration mode explaining credential overrides. |
| Base URL Override | Optional base URL to override the stored credential's base URL (without /api/v1). |
| API Key Override | Optional API key to override the stored credential's API key. |
| Coupon Token for Validation | The coupon token string that you want to validate. This is required for the Validate Coupon operation. |
Output
The node outputs an array of JSON objects, each representing the response from the Lectful Central API for the coupon validation request. The structure of the JSON depends on the API response but typically includes details about the coupon's validity, status, and any associated metadata.
If the API returns a string response, the node attempts to parse it as JSON; if parsing fails, the raw string is returned.
No binary data output is produced by this operation.
Dependencies
- Requires access to the Lectful Central API.
- Requires either stored credentials configured in n8n (an API key and base URL) or manual entry of these values.
- No additional external dependencies beyond HTTP requests to the Lectful Central API.
Troubleshooting
Missing or invalid credentials:
If using stored credentials, ensure the API key and base URL are correctly configured. If using manual mode, both Base URL Override and API Key Override must be provided. Errors will be thrown if these are missing.Invalid coupon token:
If the coupon token is invalid, expired, or does not exist, the API will return an error or a response indicating invalidity. Check the token value and ensure it is correct.Network or API errors:
Network issues or incorrect base URLs can cause request failures. Verify connectivity and that the base URL is correct (should not include/api/v1as it is appended automatically).JSON parsing errors:
If the API returns a non-JSON string unexpectedly, the node logs a warning and returns the raw string. Ensure the API behaves as expected.
Links and References
- Lectful Central API Documentation (Assumed, replace with actual URL if available)
- n8n documentation on HTTP Request Node for understanding underlying request mechanics.
This summary focuses exclusively on the Coupon Management > Validate Coupon operation as requested.