HostBill icon

HostBill

Consume HostBill API (v.0.1.3)

Overview

This node allows you to delete a domain from the HostBill system by specifying its Domain ID. It is useful in automation workflows where you need to programmatically remove domains, for example, as part of account cleanup, deprovisioning, or when synchronizing domain data between systems.

Example scenarios:

  • Automatically deleting expired or cancelled domains.
  • Removing test or temporary domains after use.
  • Integrating with other systems to keep domain records up-to-date.

Properties

Name Type Meaning
Domain ID Number The unique identifier of the domain to delete. This is required to specify which domain will be removed from HostBill.

Output

The output is a JSON object (or array of objects) representing the result of the delete operation. If the operation succeeds, it typically returns confirmation details about the deleted domain. 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": "Domain deleted successfully",
    "id": 12345
  }
]

Or, on failure (with "Continue On Fail"):

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

Dependencies

  • HostBill API: Requires valid HostBill API credentials configured in n8n under the name hostBillApi.
  • n8n Configuration: No additional environment variables are needed beyond standard credential setup.

Troubleshooting

  • Invalid Domain ID: If the provided Domain ID does not exist, you may receive an error such as "Domain not found". Double-check the ID value.
  • Authentication Errors: If your API credentials are incorrect or missing, the node will throw authentication errors. Ensure that the hostBillApi credentials are set up and tested.
  • Permission Issues: The API user must have permission to delete domains; otherwise, you may see authorization errors.
  • Continue On Fail: If enabled, errors will be returned in the output as an error field instead of stopping the workflow.

Links and References

Discussion