Actions24
Overview
This node integrates with the Leanios API, allowing users to perform various operations on different Leanios resources such as products, transactions, productions, workorders, orders, and warehouses. It supports fetching data by ID, creating new records, and updating existing ones via HTTP methods like GET, POST, and PATCH.
Common scenarios include:
- Retrieving detailed information about a specific resource by its ID.
- Creating new entries in Leanios for inventory, orders, or production management.
- Updating existing records to reflect changes in business processes.
For example, a user might use this node to fetch a transaction by its ID to analyze sales data or update a product's details after a price change.
Properties
| Name | Meaning |
|---|---|
| Subdomain | The Leanios account subdomain to target (e.g., "dummy" would access https://dummy.leanios.com). This is required to form the API endpoint URL. |
Note: Although the node supports selecting Resource and Operation, your provided input properties only specify "Subdomain". The node internally handles resource and operation parameters to build requests accordingly.
Output
The node outputs JSON data returned from the Leanios API corresponding to the requested resource and operation. The output is an array of JSON objects representing the resource data fetched or modified.
If the operation is a GET by ID, the output will be the single resource object retrieved. For POST or PATCH operations, the output reflects the created or updated resource as returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active Leanios API credential consisting of a username and password for basic authentication.
- The node makes HTTPS requests to the Leanios API endpoint constructed using the provided subdomain and resource.
- No additional external dependencies beyond standard HTTP request capabilities.
Troubleshooting
- Authentication errors: If credentials are incorrect or missing, the node will fail to authenticate with the Leanios API. Verify that the API username and password are correctly configured.
- Invalid subdomain: Providing an incorrect or non-existent subdomain will cause connection failures. Ensure the subdomain matches your Leanios account.
- Resource or operation mismatch: Using unsupported combinations of resource and operation may result in API errors. Confirm that the selected resource supports the intended operation.
- Missing required parameters: For operations like getById or PATCH, ensure the required ID parameter is provided; otherwise, the API call will fail.
- API errors: Any error message returned by the Leanios API will be surfaced as a node operation error. Review the message for clues and consult Leanios API documentation if needed.
Links and References
- Leanios Official Website
- Leanios API Documentation (Assumed location; verify with actual docs)
- n8n Documentation on Creating Custom Nodes