Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Item Stock History → List Of Item Stock History

AI-generated

Overview

This node interacts with the "Item Stock History" resource of the Halo PSA API, specifically performing the "List Of Item Stock History" operation. It retrieves a list of stock history records for items, allowing users to query and filter historical stock data.

Common scenarios where this node is beneficial include:

  • Tracking inventory changes over time for specific items.
  • Auditing stock movements in warehouses or locations.
  • Generating reports on stock adjustments or transactions.
  • Integrating stock history data into broader workflows for inventory management.

For example, a user might use this node to fetch all stock history entries for a particular item ID within a date range or sorted by certain criteria, then process or analyze that data downstream in n8n.

Properties

Name Meaning
Count Number of records to retrieve (limit).
Idonly Option to return only IDs instead of full records.
Item Id Filter results by a specific item identifier.
Itemstock Id Filter results by a specific item stock identifier.
Order Primary ordering field for sorting results.
Order 2 Secondary ordering field for sorting results.
Order 3 Tertiary ordering field for sorting results.
Order 4 Fourth-level ordering field for sorting results.
Order 5 Fifth-level ordering field for sorting results.
Orderdesc Boolean or flag indicating descending order for primary order field.
Orderdesc 2 Descending order flag for secondary order field.
Orderdesc 3 Descending order flag for tertiary order field.
Orderdesc 4 Descending order flag for fourth-level order field.
Orderdesc 5 Descending order flag for fifth-level order field.
Page No Page number for paginated results.
Page Size Number of records per page in pagination.
Pageinate Flag to enable or disable pagination.
Search Search string to filter stock history records by text matching.
Stockbin Id Filter results by a specific stock bin identifier.
Stocklocation Id Filter results by a specific stock location identifier.

Output

The node outputs an array of JSON objects representing the item stock history records retrieved from the API. Each object contains fields corresponding to the stock history details as returned by the Halo PSA API.

If the idonly property is used, the output will contain only the IDs of the stock history records rather than full details.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the Halo PSA API.
  • Needs credentials including base URL, tenant identifier, client ID, and client secret for authentication.
  • The node uses HTTP requests to communicate with the Halo PSA API endpoints.
  • Proper configuration of these credentials in n8n is necessary before using the node.

Troubleshooting

  • No credentials returned!: This error occurs if the node cannot find or access the required API credentials. Ensure that the API key credential is properly configured and selected in the node.
  • Resource or Operation not found: If the specified resource or operation does not exist, verify that the correct resource ("Item Stock History") and operation ("List Of Item Stock History") are selected.
  • API request failures: Network issues, invalid parameters, or authentication errors can cause request failures. Check the API credentials, endpoint URLs, and parameter values.
  • Pagination issues: Incorrect page numbers or sizes may result in empty or incomplete data sets. Adjust pagination properties accordingly.
  • Invalid JSON parameters: If using advanced JSON input for query or body parameters, ensure valid JSON syntax to avoid parsing errors.

Links and References

Discussion