Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

This node interacts with the Lectful Central API to manage payment methods among other administrative operations. Specifically, the Create Payment Method operation allows users to add a new payment method to their system by specifying details such as the name, unique code, description, and status flags.

Common scenarios where this node is beneficial include:

  • Automating the setup of new payment options in an e-commerce or subscription platform.
  • Integrating payment method management into workflows that provision or update billing configurations.
  • Synchronizing payment methods from external systems into Lectful Central.

Practical example:

  • A business wants to add "Credit Card" and "Bank Transfer" as payment methods automatically when onboarding new tenants or products. Using this node, they can create these payment methods programmatically without manual intervention.

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
Payment Method Name The display name of the payment method (e.g., Credit Card, Bank Transfer)
Payment Method Code Unique code identifier for the payment method (e.g., credit_card, bank_transfer)
Payment Method Description Optional detailed description of the payment method
Is Active Boolean flag indicating whether the payment method is active
Is Online Boolean flag indicating whether the payment method supports online transactions
Requires Reference Boolean flag indicating if the payment method requires a reference number

Output

The node outputs an array of JSON objects representing the API response for each input item processed. For the Create Payment Method operation, the output JSON contains the newly created payment method's details as returned by the Lectful Central API, typically including fields like ID, name, code, description, and status flags.

No binary data output is produced by this operation.

Example output JSON structure (simplified):

{
  "id": 123,
  "name": "Credit Card",
  "code": "credit_card",
  "description": "Payment via credit card",
  "is_active": true,
  "is_online": true,
  "requires_reference": false
}

Dependencies

  • Requires access to the Lectful Central API.
  • Authentication can be provided either via:
    • Stored credentials configured in n8n (an API key and base URL).
    • Manual configuration by supplying the base URL and API key directly in the node parameters.
  • No additional external dependencies are required.

Troubleshooting

  • Missing or invalid credentials error:
    If using stored credentials mode, ensure that valid API key and base URL are configured in n8n credentials. Alternatively, switch to manual mode and provide valid overrides.

  • Base URL or API key missing in manual mode:
    When using manual configuration, both Base URL Override and API Key Override must be provided; otherwise, the node will throw an error.

  • Invalid JSON format errors:
    This operation does not parse JSON inputs except for some other operations, but if you encounter JSON parsing errors in other contexts, verify the JSON syntax carefully.

  • API request failures:
    Check network connectivity and API endpoint availability. Also, verify that the API key has sufficient permissions to create payment methods.

  • Duplicate payment method code:
    The payment method code must be unique. Attempting to create a payment method with a duplicate code may result in an API error.

Links and References

Discussion