Actions24
Overview
This node integrates with the Leanios API to perform operations on various resources, including Orders. Specifically for the Order resource with the POST operation, it allows creating new orders by sending JSON data to the Leanios backend. This is useful in scenarios where you want to automate order creation from other systems or workflows, such as e-commerce platforms, inventory management, or ERP systems.
For example, you can use this node to programmatically create an order in Leanios by providing the necessary order details in JSON format, enabling seamless integration and automation of order processing.
Properties
| Name | Meaning |
|---|---|
| Subdomain | The Leanios account subdomain to target (e.g., "dummy"). This defines the API endpoint. |
| Request Mode | The mode of request body input; currently supports only "jsonBody" for POST operations. |
| jsonBody | The JSON-formatted data representing the order details to be sent in the POST request. |
Output
The node outputs a JSON array containing the response from the Leanios API after creating the order. The structure of the output JSON corresponds directly to the API's response, typically including details of the newly created order such as its ID, status, and any other relevant metadata returned by Leanios.
No binary data output is produced by this node.
Dependencies
- Requires an active Leanios API credential with username and password for authentication.
- Needs the user to specify the correct subdomain corresponding to their Leanios account.
- The node makes HTTP requests to
https://{Subdomain}.leanios.com/api/v1/ordersendpoint.
Troubleshooting
- Authentication errors: If the API credentials are incorrect or missing, the node will fail to authenticate. Ensure valid credentials are configured.
- Invalid JSON body: Providing malformed JSON in the
jsonBodyproperty will cause the API request to fail. Validate JSON syntax before execution. - Incorrect subdomain: Using an invalid or misspelled subdomain will result in connection errors. Verify the subdomain matches your Leanios account.
- API errors: Any error messages returned by the Leanios API (e.g., validation errors) will be surfaced by the node. Review the message for details and adjust the input accordingly.
Links and References
- Leanios API Documentation (Assumed official API docs for reference)
- n8n HTTP Request Node documentation for understanding request options: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/