mittwald icon

mittwald

Interact with mittwald mStudio API

Actions409

Overview

This node interacts with the mittwald mStudio API to delete a customer record. It is designed for scenarios where you need to programmatically remove customers from your system, specifically those who do not have any active contracts or unpaid invoices. This ensures that only eligible customers are deleted, maintaining data integrity and compliance with business rules.

A practical example would be automating cleanup of customer records after contract termination and invoice settlement, helping keep your customer database up-to-date without manual intervention.

Properties

Name Meaning
Customer Id The unique identifier (UUID) of the customer to be deleted. Only customers without active contracts or unpaid invoices can be deleted.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will include confirmation of successful deletion or an error message if the deletion could not be performed (e.g., due to active contracts or unpaid invoices). There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the mittwald mStudio API.
  • The node sends requests to the base URL: https://api.mittwald.de.
  • Proper configuration of the API authentication in n8n credentials is necessary for the node to function.

Troubleshooting

  • Common issues:

    • Attempting to delete a customer who has active contracts or unpaid invoices will likely fail.
    • Invalid or missing Customer Id will cause errors.
    • Authentication failures due to incorrect or expired API keys.
  • Error messages and resolutions:

    • "Customer cannot be deleted due to active contracts or unpaid invoices." — Ensure the customer meets the criteria before attempting deletion.
    • "Authentication failed." — Verify that the API key credential is correctly configured and valid.
    • "Customer Id is required." — Provide a valid UUID for the customer to delete.

Links and References

Discussion