Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Item Stock → Get One Item Stock

AI-generated

Overview

This node integrates with the Halo PSA API to retrieve detailed information about a specific item stock record. The "Get One Item Stock" operation fetches data for a single item stock entry identified by its unique ID. This is useful in scenarios where you need to monitor inventory levels, check stock details for a particular item, or integrate stock data into workflows such as order processing, reporting, or alerts.

Practical examples:

  • Automatically retrieving current stock details before creating a sales order.
  • Syncing item stock information with an external inventory management system.
  • Triggering notifications when stock for a specific item falls below a threshold.

Properties

Name Meaning
Id The unique numeric identifier of the item stock record to retrieve.
Includedetails Optional flag to include additional detailed information about the item stock in output.

Output

The node outputs JSON data representing the item stock record retrieved from the Halo PSA API. The structure typically includes fields describing the stock quantity, location, item details, and optionally extended details if requested via the Includedetails property.

If the node encounters an error during the API request, it outputs a JSON object containing an error field with the error message.

The node does not output binary data.

Dependencies

  • Requires valid credentials for the Halo PSA API, including base URL, tenant identifier, client ID, and client secret.
  • The node uses these credentials to authenticate API requests.
  • No additional environment variables are required beyond the configured credentials.

Troubleshooting

  • No credentials returned!
    This error indicates that the node could not find or access the necessary API credentials. Ensure that the API key credential is properly configured in n8n and assigned to this node.

  • Resource or Operation not found
    If the specified resource or operation name is incorrect or missing, the node will throw an error. Verify that the Resource is set to "Item Stock" and Operation to "Get One Item Stock".

  • API request errors
    Network issues, invalid IDs, or permission problems may cause API request failures. The node returns the error message in the output JSON if "Continue On Fail" is enabled; otherwise, it throws an error stopping execution. Check the error message for clues and verify API access and parameters.

  • Invalid or missing Id parameter
    Since the Id property is required, ensure it is provided and is a valid number corresponding to an existing item stock record.

Links and References

Discussion