Lectful Central icon

Lectful Central

Interact with the Lectful Central API for admin operations

Overview

The "Update Price" operation in the Subscription Management resource of the Lectful Central node allows users to modify details of an existing price entity associated with subscription plans. This operation is useful for updating pricing information such as the name, description, amount, and active status of a price without needing to delete and recreate it.

Typical use cases include:

  • Adjusting the price amount or description due to changes in business strategy.
  • Activating or deactivating a price option based on availability.
  • Renaming a price to better reflect its features or billing cycle.

For example, if a company wants to update the monthly subscription price from $29.99 to $34.99, they can use this operation to change the amount field of the specific price 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)
Base URL Override Optional base URL to override the credential setting (without /api/v1). Used only in Manual Configuration mode.
API Key Override Optional API key to override the credential setting. Used only in Manual Configuration mode.
Price ID The unique identifier of the price to update. Required.
Price Name New name for the price. Optional; if provided, updates the price's name.
Price Description New description for the price. Optional; if provided, updates the price's description.
Amount (in cents) New price amount in cents (e.g., 2999 for $29.99). Optional; if greater than zero, updates the amount.
Is Active Boolean indicating whether the price is active. Optional; if provided, updates the active status.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the "Update Price" operation, the output JSON contains the updated price object returned by the Lectful Central API after the successful update.

Example output structure:

{
  "id": 123,
  "name": "Updated Price Name",
  "description": "Updated description",
  "amount": 3499,
  "currency": "USD",
  "pricing_model": "flat_fee",
  "period_unit": "month",
  "period": 1,
  "trial_period": 0,
  "is_active": true,
  ...
}

(Note: The actual response may contain additional fields as returned by the API.)

The node does not output binary data for this operation.

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 update prices.
  • No additional external dependencies are required.

Troubleshooting

  • Missing or invalid credentials: If neither stored credentials nor manual configuration parameters are properly set, the node will throw an error indicating missing or invalid credentials. Ensure that the API key and base URL are correctly configured.
  • Price ID not provided or invalid: The operation requires a valid price ID. Omitting this or providing an incorrect ID will result in an error from the API.
  • Invalid property values: Providing invalid types or values (e.g., negative amount) may cause the API to reject the request.
  • API errors: Any API-level errors (such as permission denied or resource not found) will be surfaced as error messages. Review the API response for details.
  • JSON parsing errors: Not applicable for this operation since no JSON input fields are expected beyond simple types.

To resolve issues:

  • Verify credentials and authentication mode.
  • Confirm the price ID exists and is correct.
  • Validate all input fields for correctness.
  • Check API permissions and limits.

Links and References

Discussion