Surense icon

Surense

Interact with Surense API

Customer → Delete a Customer

AI-generated

Overview

This node integrates with the Surense API to perform various operations on different resources. Specifically, for the "Customer" resource and the "Delete a Customer" operation, it allows users to delete a customer record by specifying the customer's unique identifier (UUID). This is useful in scenarios where you need to remove outdated or incorrect customer data from your system.

Practical examples include:

  • Automatically deleting customers who have unsubscribed or requested data removal.
  • Cleaning up test or duplicate customer entries in bulk workflows.
  • Integrating with CRM systems to maintain up-to-date customer records by removing inactive customers.

Properties

Name Meaning
מזהה לקוח The unique identifier of the customer to delete, provided as a UUID string. Example: 123e4567-e89b-12d3-a456-426614174000

Output

The output of this node is an array where each item corresponds to the result of the delete operation for each input item. Each output item contains a json field that typically includes confirmation of the deletion or any relevant response from the Surense API.

If an error occurs during deletion and the node is set to continue on failure, the output will contain an error message inside the json field describing what went wrong.

This node does not output binary data.

Dependencies

  • Requires an active connection to the Surense API.
  • Needs an API authentication token configured via OAuth2 credentials within n8n.
  • Proper permissions must be granted to delete customer records through the API.

Troubleshooting

  • Common issues:

    • Invalid or missing customer ID (UUID) will cause the operation to fail.
    • Insufficient API permissions can prevent deletion.
    • Network or authentication errors may interrupt communication with the Surense API.
  • Error messages:

    • "error": "Customer ID is invalid" — Verify the UUID format and correctness of the customer ID.
    • "error": "Unauthorized" — Check that the API credentials are valid and have delete permissions.
    • "error": "Customer not found" — Confirm the customer exists before attempting deletion.

To resolve these, ensure the customer ID is correct, the API credentials are properly configured, and the user has necessary permissions.

Links and References

Discussion