Actions22
Overview
This node operation deletes a specific time tracking entry from a FreshBooks business account. It is useful when you need to remove incorrect or obsolete time entries that were previously recorded in FreshBooks. For example, if a time entry was logged by mistake or needs to be removed due to project changes, this operation allows you to delete it programmatically.
Properties
| Name | Meaning |
|---|---|
| Business ID | Your FreshBooks Business ID. Found in your FreshBooks account URL or via the user info API endpoint. |
| Time Entry ID | The unique identifier of the time entry you want to delete. |
Output
The output JSON contains the response from the FreshBooks API after attempting to delete the specified time entry. Typically, for a successful deletion, the response may be empty or contain confirmation metadata. No binary data is returned.
Dependencies
- Requires an active FreshBooks API authentication token (OAuth2 or API key) configured in n8n credentials.
- The node makes HTTP DELETE requests to the FreshBooks API endpoint:
/timetracking/business/{businessId}/time_entries/{timeEntryId}
Troubleshooting
Common issues:
- Invalid or missing Business ID or Time Entry ID will cause the request to fail.
- Insufficient permissions or expired API tokens can result in authorization errors.
- Attempting to delete a non-existent time entry will return an error from the API.
Error messages and resolutions:
- 404 Not Found: The specified time entry does not exist. Verify the Time Entry ID.
- 401 Unauthorized: Authentication failed. Check that your API credentials are valid and have not expired.
- 400 Bad Request: The request parameters are invalid. Ensure Business ID and Time Entry ID are correctly formatted.