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 subscriptions, among other resources. Specifically, the Delete Subscription operation allows users to delete a subscription by its ID.

Common scenarios for this operation include:

  • Removing a subscription that is no longer needed or was created in error.
  • Cleaning up test or expired subscriptions from the system.
  • Automating subscription lifecycle management workflows where deletion is required based on business logic.

Practical example:

  • An automation workflow detects that a customer has canceled their service and triggers this node to delete the corresponding subscription record in Lectful Central by providing the subscription ID.

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.
Subscription ID The numeric ID of the subscription to delete. This is a required field.

Output

The node outputs the JSON response returned by the Lectful Central API after attempting to delete the subscription. Typically, this will be an object indicating success or failure of the deletion request.

If the API returns binary data (not typical for delete operations), it would be included in the output, but this operation primarily deals with JSON responses.

Example output JSON structure might look like:

{
  "message": "Subscription deleted successfully"
}

or in case of error:

{
  "error": "Subscription not found"
}

Dependencies

  • Requires access to the Lectful Central API.
  • Requires either stored credentials configured in n8n or manual entry of the base URL and API key.
  • The API key must have sufficient permissions to delete subscriptions.
  • No additional external dependencies beyond HTTP access to the Lectful Central API.

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 and API key when using manual authentication mode.

  • Subscription ID not provided or invalid:
    The operation requires a valid subscription ID. Make sure the ID is correct and exists in the system.

  • API errors such as "Subscription not found" or permission denied:
    Check that the subscription ID exists and that the API key has the necessary permissions.

  • Network or timeout issues:
    Verify network connectivity to the Lectful Central API endpoint and ensure the API is reachable.

Links and References

Discussion