Actions40
- Customer Actions
- Inventory Actions
- Order Actions
- Products Actions
- Shipping and fulfillment Actions
- Location Actions
Inventory → Create
AI-generatedOverview
This node integrates with the Haravan platform, specifically allowing users to create inventory records. It is designed to listen for events such as orders, products, and accounts, and automate workflows based on these triggers. The "Create Inventory" operation enables users to add new inventory entries into their Haravan store, which is useful for managing stock levels, adding new product quantities, or initializing inventory data.
Practical examples include:
- Automatically creating inventory records when new products are added.
- Syncing inventory levels from external systems by creating inventory updates in Haravan.
- Automating stock replenishment workflows by creating inventory entries when certain conditions are met.
Properties
| Name | Meaning |
|---|---|
| Options | A collection of optional settings for the operation. |
| - Logging Request | Boolean option to enable logging of each API request sent to Haravan for debugging purposes. |
Output
The node outputs an array of JSON objects representing the result of the inventory creation operation. Each output item contains metadata about the execution, including:
executionId: Unique identifier for the current execution.resource: The resource type involved (in this case, "Inventory").operation: The operation performed ("Create").status: Status of the operation, typically "completed".timestamp: ISO string timestamp marking when the operation was completed.
If multiple items are processed, the output will be an array of such objects, one per input item.
No binary data output is indicated in the source code.
Dependencies
- Requires an API key credential for authenticating with the Haravan platform.
- Depends on the Haravan API being accessible and properly configured.
- No additional environment variables or external services are explicitly required beyond the API authentication.
Troubleshooting
Common issues:
- Authentication failures due to invalid or missing API credentials.
- Network connectivity problems preventing access to the Haravan API.
- Incorrect input parameters leading to failed inventory creation.
Error messages:
- Errors thrown during execution will include the item index for easier debugging.
- If "continue on fail" is enabled, errors will be returned as part of the output JSON with error details.
- Without "continue on fail," the node will throw an error stopping workflow execution.
Resolution tips:
- Verify that the API key credential is correctly set up and has necessary permissions.
- Check network connectivity and API endpoint availability.
- Ensure input data matches expected formats and required fields for inventory creation.
Links and References
- Haravan API Documentation (for detailed API usage and inventory endpoints)
- n8n documentation on creating custom nodes