Actions92
- Contact Actions
- Employee Actions
- Estimate Actions
- Invoice Actions
- Job Actions
- Line Item Actions
- Note Actions
- Setting Actions
- Supplier Actions
- Task Actions
- Technician Actions
- User Actions
- Website Actions
- WhatsApp Actions
Overview
This node integrates with the WibiClick API to manage various resources, including employees, jobs, contacts, invoices, and more. Specifically for the Employee resource and the Calculate Employee Salary operation, it calculates an employee's salary over a specified date range by querying the API.
Typical use cases include:
- Automating payroll calculations based on employee earnings and expenses within a given period.
- Integrating salary calculations into broader HR or accounting workflows.
- Generating reports or triggering notifications based on calculated salaries.
Example: Calculate the salary of an employee with ID "12345" from January 1, 2024, to January 31, 2024, to automate monthly payroll processing.
Properties
| Name | Meaning |
|---|---|
| Employee ID | The unique identifier of the employee whose salary is to be calculated. |
| Start Date | The start date of the period for which the salary calculation applies (inclusive). |
| End Date | The end date of the period for which the salary calculation applies (inclusive). |
Output
The output JSON contains the response from the WibiClick API endpoint that calculates the employee's salary. This typically includes detailed salary information such as total earnings, deductions, expenses, and net salary for the specified period.
Example output structure (simplified):
{
"salaryDetails": {
"totalEarnings": 5000,
"totalExpenses": 300,
"netSalary": 4700,
"periodStart": "2024-01-01T00:00:00Z",
"periodEnd": "2024-01-31T23:59:59Z"
}
}
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the WibiClick API.
- An API key credential must be configured in n8n to authenticate requests.
- The node uses HTTP GET requests to fetch salary data from the endpoint
/employee-salary/{employeeId}?start={startDate}&end={endDate}.
Troubleshooting
- Invalid Dates: Ensure that the
Start DateandEnd Dateare valid ISO date strings and that the start date is before the end date. - Employee Not Found: If the employee ID does not exist, the API may return an error or empty result. Verify the employee ID is correct.
- Authentication Errors: Check that the API key credential is correctly set up and has sufficient permissions.
- API Rate Limits or Downtime: Temporary failures might occur due to API limits or service issues; retry after some time.
- Unexpected Response: If the API returns unexpected data, verify the API version compatibility and consult WibiClick API documentation.
Links and References
- WibiClick API Documentation (hypothetical link, replace with actual if available)
- n8n HTTP Request Node Documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
- n8n Credentials Setup Guide: https://docs.n8n.io/credentials/overview/
If you need details about other operations or resources, please provide their names.