WibiClick icon

WibiClick

Interact with WibiClick API

Actions92

Overview

The node integrates with the WibiClick API to manage various business resources, including employees, jobs, contacts, invoices, and more. Specifically, for the Employee resource and the Get Employee Expenses operation, it retrieves expense data related to a particular employee within a specified date range.

This node is beneficial in scenarios where you need to automate fetching employee-related financial data, such as expense reports, for accounting, payroll processing, or auditing purposes. For example, you can use this node to pull all expenses incurred by an employee during a project period or monthly expenses for reimbursement workflows.

Properties

Name Meaning
Employee ID The unique identifier of the employee whose expenses are to be retrieved.
Start Date The start date of the period for which employee expenses should be fetched (inclusive).
End Date The end date of the period for which employee expenses should be fetched (inclusive).

Output

  • The output JSON contains the response from the WibiClick API endpoint that returns employee expenses.
  • The structure typically includes details about each expense item associated with the employee within the specified date range.
  • The exact fields depend on the API response but generally include expense amounts, dates, descriptions, and possibly categories or types.
  • No binary data output is involved in this operation.

Example output snippet (conceptual):

{
  "expenses": [
    {
      "date": "2024-04-01",
      "amount": 150.00,
      "description": "Travel expenses"
    },
    {
      "date": "2024-04-15",
      "amount": 75.50,
      "description": "Office supplies"
    }
  ]
}

Dependencies

  • Requires an API key credential for authenticating requests to the WibiClick API.
  • The node uses HTTP requests to communicate with the WibiClick API endpoints.
  • Ensure the API URL and key are correctly configured in the node credentials.
  • No additional external dependencies beyond standard HTTP and authentication.

Troubleshooting

  • Invalid or missing Employee ID: The operation requires a valid employee ID; ensure this is provided and correct.
  • Date format errors: Start Date and End Date must be valid ISO date strings. Invalid formats may cause request failures.
  • API authentication errors: If the API key is invalid or expired, requests will fail with authorization errors. Verify and update credentials as needed.
  • Empty or no expenses returned: This might indicate no expenses recorded for the employee in the given date range.
  • Network or connectivity issues: Ensure the node can reach the WibiClick API endpoint without firewall or proxy restrictions.

Common error messages:

  • "Failed to fetch employee expenses" (generic failure) — check network and API status.
  • "Unauthorized" — verify API key credential.
  • "Invalid date format" — confirm date inputs follow the expected format.

Links and References


This summary focuses exclusively on the Employee - Get Employee Expenses operation based on the provided source code and input properties.

Discussion