Magnet Customer icon

Magnet Customer

Consume Magnet Customer API

Overview

This node integrates with the Magnet Customer API to perform various operations on different resources, including organizations. Specifically, for the Organization resource and the Delete operation, it deletes an organization identified by its ID from the Magnet Customer system.

This node is useful in automation workflows where you need to programmatically remove organizations from your CRM or customer management system based on certain triggers or conditions. For example, you might delete organizations that are no longer active or relevant, or clean up test data automatically.

Properties

Name Meaning
Authentication Method of authentication to use: either "API Token" or "OAuth2".
Organization ID The unique identifier of the organization to delete. This is a required string input.

Note: There are several hidden properties related to "Life Cycle" and "Source" which are preset internally and not exposed for user input in this operation.

Output

The node outputs JSON data representing the result of the delete operation for each input item processed. Typically, this will include confirmation of deletion or any returned metadata from the API about the deleted organization.

If an error occurs during deletion, and if the node is configured to continue on failure, the output JSON will contain an error field with the error message for that particular item.

The node does not output binary data.

Dependencies

  • Requires access to the Magnet Customer API.
  • Requires user credentials configured in n8n, either via an API token or OAuth2 authentication.
  • The node uses internal helper functions to make authenticated HTTP requests to the Magnet Customer API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Organization ID will cause the delete operation to fail.
    • Authentication failures due to incorrect API token or OAuth2 setup.
    • Network issues or API downtime can cause request failures.
  • Error messages:

    • Errors returned from the API will be passed through in the output JSON under an error key if "Continue On Fail" is enabled.
    • Common errors include "Not Found" if the organization ID does not exist, or "Unauthorized" if authentication fails.
  • Resolutions:

    • Verify the Organization ID is correct and exists in the Magnet Customer system.
    • Check that the API credentials are valid and have sufficient permissions.
    • Ensure network connectivity and API availability.

Links and References

Discussion