Actions40
- Job Actions
- Account Hierarchy Actions
- Cryptography Actions
- Customer Hierarchy Actions
- File Explorer Actions
- Generic API Actions
- Invoice Actions
- Mediation Actions
- Order Actions
- Quote Actions
- Subscription Actions
Overview
The Customer Hierarchy - Delete operation in this n8n node allows you to delete a customer account from the Opencell system by specifying its unique account code. This is useful for automating the removal of obsolete or incorrect customer records in your CRM workflows, ensuring data consistency and compliance with data management policies.
Practical scenarios:
- Automatically removing customer accounts that have been closed or terminated.
- Cleaning up test or duplicate customer entries as part of data hygiene processes.
- Integrating with other systems to synchronize customer deletions across platforms.
Properties
| Name | Type | Meaning |
|---|---|---|
| Authentication | options | Selects the authentication method to connect to Opencell (Basic Authentication or OAuth2). |
| Customer Account Code | string | The unique code identifying the customer account to be deleted. (Required) |
| Body Content Type | hidden | Internal property; set to "multipart-form-data" but not user-configurable. |
Output
- The output will be a JSON object containing the response from the Opencell API after attempting to delete the specified customer account.
- The structure of the output depends on the Opencell API's response for a delete operation. Typically, it may include status information, success/failure messages, or error details if the deletion fails.
Example output:
{
"actionStatus": {
"status": "SUCCESS",
"message": "Customer account deleted successfully"
}
}
Note: Actual output fields may vary based on Opencell API implementation.
Dependencies
- External Service: Requires access to an Opencell instance with API enabled.
- Authentication: You must provide valid credentials for either Basic Authentication or OAuth2, configured in n8n credentials.
- n8n Configuration: Ensure the Opencell API credentials are set up in n8n under the appropriate credential type.
Troubleshooting
Common issues:
- Invalid Credentials: If authentication fails, ensure your API credentials are correct and have sufficient permissions.
- Nonexistent Account Code: If the provided Customer Account Code does not exist, the API will likely return an error indicating the resource was not found.
- Insufficient Permissions: The user associated with the credentials may lack permission to delete customer accounts.
Error messages and resolutions:
"Username/password error. Error code : XXX"
Resolution: Check your username and password in the n8n credentials."Host error. Error code : XXX"
Resolution: Verify the Opencell API endpoint URL and network connectivity."Invalid credentials (unknown error)"
Resolution: Double-check all credential settings and try re-authenticating."Customer account not found"
Resolution: Confirm the Customer Account Code is correct and exists in Opencell.