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 Delete Payment Method operation allows users to delete a payment method by its ID from the Lectful system.

Common scenarios where this node is beneficial include:

  • Automating cleanup of obsolete or invalid payment methods.
  • Integrating payment method management into broader workflows for subscription or billing systems.
  • Managing payment methods programmatically without manual intervention in the Lectful admin interface.

For example, you might use this node in an automated workflow that removes payment methods no longer used by customers after a certain period or when a customer cancels their subscription.

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 only if Manual Configuration is selected, explaining that credentials can be left empty and overrides will be used instead.
Base URL Override Optional base URL to override the credential setting (without /api/v1). Required if using Manual Configuration mode.
API Key Override Optional API key to override the credential setting. Required if using Manual Configuration mode.
Payment Method ID The numeric ID of the payment method to delete. This is a required field for the Delete Payment Method operation.

Output

The node outputs the JSON response returned by the Lectful Central API after attempting to delete the specified payment method. The output structure is:

{
  "json": {
    // API response data confirming deletion or error details
  }
}

If the deletion is successful, the response typically confirms the removal of the payment method. If there is an error (e.g., invalid ID, permission issues), the output will contain error information.

The node does not output binary data.

Dependencies

  • Requires access to the Lectful Central API.
  • Requires either stored API credentials configured in n8n or manual entry of the base URL and API key.
  • 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. Please configure Lectful API credentials in the credentials field above or switch to Manual Configuration mode."
    Resolution: Ensure that valid API credentials are configured in n8n 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 provided payment method ID does not exist or is incorrect, the API will return an error.
    Resolution: Verify the payment method ID before attempting deletion.

  • API Request Failures:
    Network issues or API downtime may cause request failures.
    Resolution: Check network connectivity and Lectful API status.

  • Continue on Fail Behavior:
    If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.

Links and References


This summary covers the Delete Payment Method operation within the Lectful Central node, focusing on its input properties, expected output, dependencies, and common troubleshooting tips.

Discussion