WibiClick icon

WibiClick

Interact with WibiClick API

Actions92

Overview

This node interacts with the WibiClick API to perform various operations on multiple resources, including invoices. Specifically, for the Invoice resource and the Get Invoice Number operation, the node retrieves the next available invoice number for a specified website. This is useful in scenarios where you want to generate or display the next invoice number before creating an invoice, ensuring sequential numbering and avoiding duplicates.

Practical examples:

  • Automatically fetch the next invoice number when preparing to create a new invoice.
  • Use the invoice number in custom workflows or notifications before saving the invoice data.

Properties

Name Meaning
Website ID The unique identifier of the website for which to retrieve the next invoice number.

Output

The output JSON contains the response from the WibiClick API endpoint that provides the next invoice number. Typically, this will be an object with a property indicating the next invoice number (e.g., { "invoice_number": 1711 }).

Example output:

{
  "invoice_number": 1711
}

No binary data is involved in this operation.

Dependencies

  • Requires an active connection to the WibiClick API.
  • Requires an API key credential for authentication with the WibiClick service.
  • The node uses HTTP requests to communicate with the WibiClick API endpoints.
  • The websiteId parameter must correspond to a valid website registered in the WibiClick system.

Troubleshooting

  • Invalid or missing Website ID: Ensure the Website ID provided is correct and corresponds to an existing website in WibiClick.
  • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • API request failures: Network issues or API downtime can cause errors; check connectivity and WibiClick service status.
  • Unexpected response format: If the API changes, the node might not parse the response correctly; verify API documentation for updates.

Common error messages:

  • "Failed to retrieve invoice number" (implied if the API does not return expected data).
  • HTTP 401 Unauthorized: Check API key validity.
  • HTTP 404 Not Found: The website ID may be incorrect or the resource unavailable.

Links and References

Discussion