HostBill icon

HostBill

Consume HostBill API (v.0.1.3)

Overview

This node allows you to delete a client from the HostBill system by specifying the Client ID. It is useful in automation scenarios where you need to programmatically remove client records, such as when cleaning up test data, handling account closures, or synchronizing client lists between systems.

Example use cases:

  • Automatically deleting clients who have requested account removal.
  • Cleaning up old or inactive client records as part of a scheduled workflow.
  • Integrating with other systems to ensure client data consistency.

Properties

Name Type Meaning
Client ID Number The unique identifier of the client to be deleted. This field is required.

Output

The output will be a JSON object (or array of objects) representing the result of the delete operation for each input item. If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

[
  {
    "success": true,
    "message": "Client deleted successfully"
  }
]

Or, in case of error:

[
  {
    "error": "Client not found"
  }
]

Dependencies

  • HostBill API: Requires valid HostBill API credentials configured in n8n under the name hostBillApi.
  • n8n Configuration: Ensure that the HostBill API credentials are set up and tested within your n8n instance.

Troubleshooting

  • Invalid Credentials: If the API credentials are incorrect or missing, the node will throw an authentication error. Make sure the hostBillApi credential is properly configured and tested.
  • Client Not Found: If the specified Client ID does not exist, the output will contain an error message like "Client not found".
  • Permission Issues: If the API user does not have permission to delete clients, you may receive an authorization error.
  • Network/Connection Errors: Any connectivity issues with the HostBill API endpoint will result in error messages indicating network problems.

Links and References

Discussion