Distru icon

Distru

Interact with the Distru Public API v1

Actions35

Inventory → Get Many

AI-generated

Overview

This node operation retrieves grouped inventory data from the Distru API. It allows users to specify grouping attributes such as Product, Location, and Batch Number to organize the inventory data accordingly. This operation is useful for scenarios where users need to analyze inventory distribution across different products, locations, or batches, such as in warehouse management or stock reporting.

Use Case Examples

  1. A warehouse manager wants to get inventory counts grouped by product and location to understand stock levels at each site.
  2. A supply chain analyst needs to retrieve inventory grouped by product and batch number to track batch-specific stock for quality control.

Properties

Name Meaning
Grouping Attributes to group inventory by, with Product being required. Options include Product, Location, and Batch Number.
Additional Fields Optional filters and pagination settings for the inventory query, including product IDs, location IDs, batch IDs, page number, and page size.

Output

JSON

  • json - The grouped inventory data returned from the Distru API, structured according to the specified grouping attributes and filters.

Dependencies

  • Distru Public API v1
  • An API token credential for authentication

Troubleshooting

  • Ensure the API token credential is set correctly; otherwise, the node will throw an error indicating the token is missing.
  • If the required 'Product' grouping attribute is not selected, the API request may fail or return incomplete data.
  • Check that the resource ID is provided if the operation requires it, although for this operation it is not required.
  • For large datasets, adjust the page size and page number to manage pagination effectively.

Links

Discussion