Vendus icon

Vendus

Interact with Vendus API for invoicing and business management. Developed by Pixel Infinito (https://pixel.ao)

Product → Update Product Stock

AI-generated

Overview

This node integrates with the Vendus API to update product stock information in a business management system. It allows users to add, remove, or set the stock quantity of a specific product in a particular store. This is useful for inventory management workflows where stock levels need to be adjusted automatically based on sales, returns, restocking, or manual corrections.

Practical examples include:

  • Automatically increasing stock when new inventory arrives.
  • Decreasing stock after a sale or product return.
  • Setting stock to a specific number after a physical inventory count.

Properties

Name Meaning
Stock Update Information A collection of fields specifying details about the stock update:
- Notes Optional notes about the stock update.
- Operation Type The type of stock operation to perform. Options: Add Stock, Remove Stock, Set Stock.
- Product Name or ID The identifier or name of the product whose stock is being updated. Can be selected from a list or specified via expression.
- Quantity The quantity by which to update the stock (number as string).
- Store Name or ID The store location where the stock update applies. Selectable from a list or specified via expression.
Options Additional optional settings:
- Enable Debug Logging Boolean flag to enable detailed debug logging for troubleshooting API calls.

Output

The node outputs JSON data representing the response from the Vendus API after performing the stock update operation. This typically includes confirmation details of the updated stock, such as updated quantities and product identifiers.

If an error occurs and "Continue On Fail" is enabled, the output JSON will contain an error field with the error message and an errorDetails object providing additional context like HTTP status code, response data, request URL, and method.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Vendus API.
  • Needs the base URL of the Vendus API configured in the credentials.
  • Uses HTTP requests to interact with Vendus endpoints.
  • Optionally supports debug logging for detailed request/response tracing.

Troubleshooting

  • Common Issues:

    • Missing or incorrect product or store IDs can cause the API call to fail.
    • Invalid quantity values (e.g., non-numeric strings) may result in errors.
    • Network or authentication issues with the Vendus API will prevent successful updates.
  • Error Messages:

    • "No routing configuration found for product.updateProductStock": Indicates a misconfiguration or unsupported operation.
    • Parameter-related errors if required inputs are missing.
    • HTTP errors returned by the Vendus API, including authentication failures or validation errors.
  • Resolutions:

    • Ensure all required parameters (product ID, quantity, operation type, store ID) are correctly provided.
    • Verify API credentials and base URL are correct and active.
    • Enable debug logging to get detailed insights into request and response payloads.
    • Use expressions carefully to ensure they resolve to valid values.

Links and References

Discussion