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 payment methods, among many other resources. Specifically, the Get Payment Method operation retrieves detailed information about a specific payment method by its ID.

Typical use cases include:

  • Fetching details of a payment method to display or process in workflows.
  • Integrating payment method data into automated billing or reporting systems.
  • Validating or auditing payment methods used within an organization.

For example, you might use this node to get the configuration and status of a credit card payment method before processing payments or updating records.

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 overrides.
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.
Payment Method ID The unique numeric identifier of the payment method to retrieve. This is required for the Get Payment Method operation.

Output

The node outputs an array of JSON objects, each representing the response from the Lectful Central API for the requested payment method. The JSON structure corresponds directly to the API's payment method resource representation, typically including fields such as:

  • id: The payment method's unique identifier.
  • name: The name of the payment method (e.g., "Credit Card").
  • code: A unique code for the payment method (e.g., "credit_card").
  • description: Description of the payment method.
  • is_active: Boolean indicating if the payment method is active.
  • is_online: Boolean indicating if the payment method supports online transactions.
  • requires_reference: Boolean indicating if the payment method requires a reference number.

If the API returns binary data (not typical for this operation), it would be included accordingly, but this operation primarily returns JSON data.

Dependencies

  • Requires access to the Lectful Central API.
  • Authentication can be provided either via stored credentials configured in n8n or manual entry of 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 beyond standard HTTP requests.

Troubleshooting

  • Missing or Invalid Credentials:
    Error message: "Valid credentials are required when using 'Use Stored Credentials' mode..."
    Resolution: Ensure that the API key and base URL are correctly configured in the credentials or provide them manually.

  • Base URL or API Key Missing in Manual Mode:
    Error message: "Base URL Override is required when using Manual Configuration mode" or "API Key Override is required when using Manual Configuration mode"
    Resolution: Provide both the base URL (without /api/v1) and API key when using manual authentication.

  • Invalid Payment Method ID:
    If the payment method ID does not exist or is invalid, the API will likely return an error. Verify the ID is correct.

  • Network or API Errors:
    Check network connectivity and ensure the Lectful Central API endpoint is accessible.

  • JSON Parsing Errors:
    The node attempts to parse string responses as JSON; if parsing fails, the raw string is returned. This usually indicates unexpected API responses.

Links and References


This summary focuses exclusively on the Payment Method Management resource and the Get Payment Method operation as requested.

Discussion