Actions68
- Custom Field Actions
- Custom Field Block Actions
- Custom Field Type Actions
- Customer Actions
- Deal Actions
- Lead Actions
- Organization Actions
- Pipeline Actions
- Prospect Actions
- Staff Actions
- Task Actions
- Workspace Actions
Overview
This node integrates with the Magnet Customer API to manage customer data within n8n workflows. Specifically, the Customer - Delete operation allows users to delete a customer record by specifying its unique ID. This is useful in scenarios where you want to automate cleanup of customer data, remove outdated or incorrect entries, or synchronize deletions from other systems.
Practical examples:
- Automatically deleting a customer in Magnet Customer when they unsubscribe from a mailing list.
- Removing test or duplicate customer records as part of a data maintenance workflow.
- Syncing deletions from a CRM system into Magnet Customer via n8n.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method used for authenticating API requests. Options: API Token, OAuth2. |
| Contact ID | The unique identifier (ID) of the customer to delete. This is required for the operation. |
Note: There are several hidden properties related to "Life Cycle" and "Source" with default values, but these are not user-configurable and do not affect the delete operation directly.
Output
The output JSON contains the response from the Magnet Customer API after attempting to delete the specified customer. Typically, this will include confirmation of deletion or an error message if the deletion failed.
If the operation fails and "Continue On Fail" is enabled, the output will contain an error object with the error message for that item.
No binary data is output by this operation.
Dependencies
- Requires access to the Magnet Customer API.
- Requires either an API token or OAuth2 credentials configured in n8n for authentication.
- The node uses internal helper functions to make HTTP requests to the Magnet Customer API endpoints.
Troubleshooting
Common issues:
- Invalid or missing Contact ID: The operation requires a valid customer ID; ensure it is correctly provided.
- Authentication errors: Verify that the API token or OAuth2 credentials are correctly set up and have sufficient permissions.
- Network or API downtime: Check connectivity and Magnet Customer API status.
Common error messages:
"Customer not found": The specified Contact ID does not exist. Verify the ID."Unauthorized"or"Authentication failed": Credentials are invalid or expired. Reconfigure authentication."Failed to delete customer": General failure, check API limits or request format.
Links and References
- Magnet Customer API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes
- OAuth2 Authentication Guide