Actions22
Overview
This node integrates with the FreshBooks API to manage various resources such as clients, projects, services, time tracking entries, and users. Specifically, for the Service resource with the Create operation, it allows users to create new service entries within a FreshBooks business account.
Use cases include automating the addition of billable services to your FreshBooks account directly from workflows, which is useful for businesses that frequently add new services or want to synchronize service data from other systems.
For example, you could use this node to automatically create a new service whenever a new product is added in your inventory system, ensuring your FreshBooks services list stays up-to-date without manual entry.
Properties
| Name | Meaning |
|---|---|
| Business ID | Your FreshBooks Business ID. This identifies the specific business account where the service will be created. You can find this ID in your FreshBooks account URL or by calling the user info endpoint. |
Note: The provided properties JSON only includes "Business ID" relevant for the Service resource creation. Other properties related to the service creation (like service name, description, rate, etc.) are not explicitly defined in the snippet, so they might be handled dynamically or through additional parameters not shown here.
Output
The node outputs JSON data representing the response from the FreshBooks API after creating a service. This typically includes details of the newly created service such as its ID, name, description, and other metadata as returned by FreshBooks.
There is no indication that this node outputs binary data.
Dependencies
- Requires an active FreshBooks account.
- Requires an API authentication token configured in n8n credentials (referred generically as an API key credential).
- The node makes HTTP requests to the FreshBooks API base URL:
https://api.freshbooks.com. - Proper permissions on the API token to create services within the specified business.
Troubleshooting
Common issues:
- Invalid or missing Business ID: Ensure the Business ID is correct and corresponds to your FreshBooks account.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- API rate limits: FreshBooks may limit the number of API calls; handle rate limiting accordingly.
- Missing required fields: If the service creation requires additional fields not provided, the API may reject the request.
Error messages:
- Unauthorized (401): Check API credentials.
- Not Found (404): Likely incorrect Business ID or endpoint URL.
- Validation errors (400): Review the request body for missing or invalid fields.
Links and References
- FreshBooks API Documentation
- FreshBooks Business ID Location
- n8n HTTP Request Node Documentation (for understanding how API requests are made)