Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

This node interacts with the Lectful Central API to perform administrative operations related to product family management, among many other resources. Specifically, the Create Product Family operation allows users to create a new product family within the Lectful system by providing details such as the product family name, description, sort order, and active status.

Common scenarios where this node is beneficial include:

  • Automating the creation of product families in an e-commerce or subscription platform.
  • Integrating product family management into workflows that synchronize product data across systems.
  • Managing product catalog structures programmatically without manual intervention.

For example, a user could automate adding new product families when onboarding new product lines or syncing product categories from another system.

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 (without /api/v1). Used only in Manual Configuration mode.
API Key Override Optional API key to override the credential setting. Used only in Manual Configuration mode.
Product Family Name The name of the product family to create. (Required)
Product Family Description Optional description of the product family.
Sort Order Numeric value defining the display order of the product family. Defaults to 1.
Is Active Boolean flag indicating whether the product family is active. Defaults to true.

Output

The node outputs an array of JSON objects representing the API response for each input item processed. For the Create Product Family operation, the output JSON contains the newly created product family details as returned by the Lectful Central API. This typically includes fields like the product family ID, name, description, sort order, active status, timestamps, and any other metadata provided by the API.

No binary data output is produced by this operation.

Example output snippet (simplified):

{
  "id": 123,
  "name": "New Product Family",
  "description": "Description here",
  "sort_order": 1,
  "is_active": true,
  "created_at": "2024-01-01T12:00:00Z",
  "updated_at": "2024-01-01T12:00:00Z"
}

Dependencies

  • Requires access to the Lectful Central API.
  • Authentication can be done via stored credentials configured in n8n or by manually providing 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 beyond HTTP connectivity.

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.
  • API errors: The node will throw errors if the API returns failure responses (e.g., validation errors, unauthorized access). Check the error message for details.
  • Invalid input: Required fields like Product Family Name must be provided; otherwise, the API may reject the request.
  • Network issues: Ensure the base URL is accessible from the n8n environment and no firewall or network restrictions block the requests.
  • JSON parsing errors: The node attempts to parse string responses as JSON; malformed responses may cause errors.

To resolve common errors:

  • Verify credentials and API keys.
  • Confirm all required parameters are set.
  • Check API documentation for correct field formats.
  • Review network connectivity and proxy settings if applicable.

Links and References


If you need summaries for other operations or resources, please provide their names.

Discussion