Actions24
Overview
This node integrates with the Leanios API to perform various operations on different resources such as Transactions, Products, Productions, Workorders, Orders, and Warehouses. Specifically for the Transaction resource with the POST operation, it allows users to create new transaction records by sending a JSON body payload to the Leanios API.
Common scenarios where this node is beneficial include automating the creation of transactions in Leanios from other systems or workflows, such as recording sales, purchases, or inventory movements programmatically.
Example use case: Automatically creating a new transaction in Leanios when an order is placed in an e-commerce platform, by passing the transaction details as JSON.
Properties
| Name | Meaning |
|---|---|
| Subdomain | The Leanios account subdomain to target (e.g., "dummy" for dummy.leanios.com). Required to build the API URL. |
| Request Mode | The mode of request payload; currently supports only jsonBody which means the request body is sent as JSON. |
| jsonBody | The JSON object representing the transaction data to be created or updated. This is required for POST and PATCH operations when using jsonBody mode. |
Output
The node outputs the response from the Leanios API as JSON. The output structure corresponds directly to the API's response for the transaction creation request, typically including details of the newly created transaction record.
No binary data output is produced by this node.
Dependencies
- Requires an active Leanios API credential containing a username and password for basic authentication.
- The node constructs API requests to URLs of the form:
https://{Subdomain}.leanios.com/api/v1/transactions - The user must provide valid JSON data for the transaction in the
jsonBodyproperty when performing POST operations.
Troubleshooting
- Authentication errors: If the API credentials are incorrect or missing, the node will fail with an authentication error. Ensure that valid Leanios API credentials are configured.
- Invalid JSON body: If the JSON provided in
jsonBodyis malformed or missing required fields, the API may return validation errors. Verify the JSON structure matches Leanios API expectations. - Incorrect Subdomain: Using an invalid or misspelled subdomain will cause connection failures. Confirm the subdomain matches your Leanios account.
- Unsupported operations: Only certain operations like POST, PATCH, and getById are supported. Using unsupported operations will result in errors.
- API endpoint errors: If the API endpoint changes or is unavailable, requests will fail. Check Leanios API status and documentation if issues persist.
Links and References
- Leanios API Documentation (Please verify actual URL)
- n8n Documentation on Creating Custom Nodes