Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

The "Get Product Family" operation in the Lectful Central node allows you to retrieve detailed information about a specific product family by its ID from the Lectful Central API. This is useful for administrators or automation workflows that need to fetch metadata, descriptions, status, and other details of a product family within an e-commerce or subscription management system.

Typical use cases include:

  • Fetching product family details to display or process in downstream workflow steps.
  • Validating the existence or status of a product family before creating or updating related entities like plans or prices.
  • Integrating with external systems that require up-to-date product family data.

Example: You want to get the details of a product family with ID 123 to check its name and active status before associating new subscription plans with it.

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 explaining credential usage.
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.
Product Family ID The numeric ID of the product family to retrieve. This is required for this operation.

Output

The output is a JSON object representing the product family details as returned by the Lectful Central API. It typically includes fields such as:

  • id: The product family ID.
  • name: The name of the product family.
  • description: A textual description of the product family.
  • sort_order: Numeric value indicating display order.
  • is_active: Boolean indicating if the product family is active.
  • Other metadata fields as provided by the API.

The node outputs this data under the json property of the item, making it accessible for further processing in your workflow.

No binary data is output 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 read product family data.
  • No additional environment variables are needed beyond the API credentials.

Troubleshooting

  • Missing or invalid credentials: If neither stored credentials nor manual overrides are properly set, the node will throw an error indicating missing credentials. Ensure you provide valid API authentication.
  • Invalid Product Family ID: Providing a non-existent or invalid product family ID will likely result in an API error or empty response. Verify the ID before running.
  • Base URL Override errors: When using manual mode, forgetting to specify the Base URL Override or API Key Override will cause errors.
  • API connectivity issues: Network problems or incorrect base URLs can cause request failures. Check connectivity and URL correctness.
  • JSON parsing errors: The node attempts to parse API responses as JSON; malformed responses may cause errors.

Links and References


This summary is based solely on static analysis of the provided source code and input properties.

Discussion