Actions22
Overview
This node integration with FreshBooks allows users to list services associated with a specific project within their FreshBooks account. It is particularly useful for businesses that manage multiple projects and need to retrieve detailed service information linked to those projects.
Common scenarios include:
- Fetching all services tied to a particular project to analyze or report on billable items.
- Integrating FreshBooks service data into other workflows, such as invoicing or project management tools.
- Automating the retrieval of service lists for synchronization with external systems.
For example, a user might want to list all services under a project "Website Redesign" to generate an invoice or track resource allocation.
Properties
| Name | Meaning |
|---|---|
| Business ID | Your FreshBooks Business ID. Found in your FreshBooks account URL or via the user info API endpoint. |
| Return All | Whether to return all available results or limit the number of returned services. |
| Limit | Maximum number of services to return if not returning all. |
| Project ID | The ID of the project to filter services by. This is required to specify which project's services to list. |
Output
The output consists of an array of JSON objects, each representing a service associated with the specified project. Each service object contains details as provided by the FreshBooks API, such as service name, description, rate, and other relevant metadata.
No binary data is output by this node operation.
Example output structure (simplified):
[
{
"id": "service_id_1",
"name": "Consulting",
"description": "Consulting services for project",
"rate": 100,
...
},
{
"id": "service_id_2",
"name": "Design",
"description": "Graphic design services",
"rate": 80,
...
}
]
Dependencies
- Requires a valid FreshBooks API authentication token configured in n8n credentials.
- Needs the FreshBooks Business ID and Project ID to query the services.
- The node makes HTTP GET requests to the FreshBooks API endpoint
/comments/business/{businessId}/serviceswith query parameters includingproject_id.
Troubleshooting
- Missing or invalid Business ID: Ensure the Business ID is correctly entered; it can be found in the FreshBooks account URL or retrieved via the user info API.
- Project ID not provided or incorrect: The Project ID is mandatory for listing services. Verify the correct project identifier is used.
- API authentication errors: Confirm that the API key or OAuth token is valid and has sufficient permissions.
- Empty results: If no services are returned, check that the project has services assigned and that filters are correct.
- Rate limiting or network issues: Handle API rate limits by enabling pagination or reducing request frequency.