Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

This node enables interaction with the Lectful Central API, specifically for administrative operations related to product family management among many other resources. The "Delete Product Family" operation allows users to delete a specific product family by its ID.

Typical use cases include:

  • Automating cleanup or removal of obsolete or deprecated product families in an e-commerce or subscription management system.
  • Integrating product family lifecycle management into broader workflows, such as syncing with external databases or triggering notifications upon deletion.
  • Managing product catalog structure programmatically without manual intervention in the Lectful Central admin interface.

Example: Automatically deleting a product family when it is no longer offered, triggered by an external event or schedule.

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 only if Manual Configuration is selected, explaining credential usage.
Base URL Override Optional base URL to override the stored credential's base URL (without /api/v1). Required if using Manual Configuration.
API Key Override Optional API key to override the stored credential's API key. Required if using Manual Configuration.
Product Family ID The numeric ID of the product family to delete. This is a required parameter for the delete operation.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the "Delete Product Family" operation, the output JSON contains the response from the Lectful Central API after attempting to delete the specified product family.

  • If successful, the response typically confirms deletion (often an empty object or status message).
  • If an error occurs, the output JSON will contain an error field with the error message (if "Continue On Fail" is enabled).

No binary data is produced by this operation.

Dependencies

  • Requires access to the Lectful Central API.
  • Requires either stored credentials configured in n8n or manual entry of Base URL and API key.
  • The API key must have sufficient permissions to perform delete operations on product families.
  • No additional external dependencies beyond standard HTTP requests.

Troubleshooting

Common Issues

  • Missing or invalid credentials: The node requires valid API credentials. If using stored credentials, ensure they are correctly configured. If using manual mode, both Base URL and API key must be provided.
  • Invalid Product Family ID: Providing a non-existent or incorrect product family ID will result in an API error.
  • Insufficient permissions: The API key used may lack permission to delete product families, causing authorization errors.
  • Network or connectivity issues: Failure to reach the Lectful Central API endpoint will cause request failures.

Common Error Messages

  • "Base URL Override is required when using Manual Configuration mode": Occurs if manual mode is selected but no base URL is provided.
  • "API Key Override is required when using Manual Configuration mode": Occurs if manual mode is selected but no API key is provided.
  • "Valid credentials are required when using 'Use Stored Credentials' mode": Indicates missing or invalid stored credentials.
  • API error responses indicating resource not found or unauthorized access.

Resolution Tips

  • Verify credentials and API key validity.
  • Confirm the product family ID exists and is correct.
  • Check API user permissions.
  • Ensure network connectivity to the Lectful Central API.

Links and References

  • Lectful Central API Documentation (Assumed URL; replace with actual if available)
  • n8n Documentation on HTTP Request Node for understanding underlying request mechanics.
  • General REST API best practices for handling authentication and error responses.

Discussion