Actions40
- Customer Actions
- Inventory Actions
- Order Actions
- Products Actions
- Shipping and fulfillment Actions
- Location Actions
Location → Get Location
AI-generatedOverview
This node integrates with the Haravan platform, enabling users to interact with various Haravan resources such as orders, products, accounts, and locations. Specifically, for the "Location" resource and the "Get Location" operation, the node retrieves information about a location from Haravan.
Common scenarios include:
- Fetching details of a specific physical or virtual location associated with a store.
- Using location data to manage inventory, shipping, or store-specific operations.
- Automating workflows that depend on location-based information from Haravan.
Practical example:
- Automatically retrieving location details when an order is placed to determine fulfillment centers or shipping origins.
Properties
| Name | Meaning |
|---|---|
| Options | A collection of optional settings: |
| - Logging Request | Boolean flag to enable logging of each API request sent to Haravan for debugging purposes. |
Output
The node outputs an array of JSON objects representing the results of the executed operation(s). For the "Get Location" operation, each output item contains a JSON object with the following structure:
executionId: The unique identifier of the current execution.resource: The resource type, here it would be"Location".operation: The operation performed, here"Get Location".status: The status of the operation, typically"completed".timestamp: ISO string timestamp indicating when the operation was completed.
The actual location data retrieved from Haravan is expected to be included in the JSON output, but based on the provided code snippet, the node currently returns metadata about the execution rather than detailed location data. This suggests that either the full implementation is elsewhere or the node is designed primarily to track execution metadata.
No binary data output is indicated by the source code.
Dependencies
- Requires an API key credential for authenticating with the Haravan platform.
- Depends on the external Haravan API service.
- Uses internal helper libraries (from
../../nqdev-libraries/haravan) for model definitions and possibly API interactions. - No additional environment variables are explicitly required beyond the API authentication.
Troubleshooting
Common issues:
- Failure to authenticate due to missing or invalid API credentials.
- Network errors or timeouts when connecting to the Haravan API.
- Misconfiguration of resource or operation parameters leading to unexpected results.
Error messages:
- Errors thrown during execution will include the item index causing the failure if multiple inputs are processed.
- If "continue on fail" is disabled, the node will stop execution on the first error.
- Enabling the "Logging Request" option can help debug API request issues by providing detailed logs.
Resolution tips:
- Verify that the API key credential is correctly configured and has necessary permissions.
- Check network connectivity and API endpoint availability.
- Use the logging option to inspect outgoing requests and responses.
- Ensure correct resource and operation names are selected.
Links and References
- Haravan Official Website
- Haravan API Documentation
- n8n documentation on Creating Custom Nodes