Leanios icon

Leanios

Actions24

Overview

This node integrates with the Leanios API to perform operations on various resources, including Products. Specifically for the Product resource with the POST operation, it allows users to create new product entries by sending JSON data to the Leanios backend.

Common scenarios include automating product creation workflows where product details are dynamically generated or imported from other systems and need to be pushed into Leanios without manual entry.

For example, a user might use this node to add new products to their inventory system after processing supplier data or after receiving new product information from an external database.

Properties

Name Meaning
Subdomain The Leanios account subdomain to target (e.g., "dummy"). This defines the API endpoint.
Request Mode The mode of request payload; currently supports only jsonBody for POST and PATCH.
jsonBody The JSON object representing the product data to send in the request body when creating or updating a product.

Output

The node outputs a JSON array containing the response from the Leanios API after performing the requested operation. For a POST on Product, this typically includes the newly created product's details as returned by the API.

No binary data output is produced by this node.

Dependencies

  • Requires valid credentials for the Leanios API (an API username and password).
  • Needs the Subdomain property to construct the correct API URL.
  • The node uses HTTP Basic Authentication with the provided credentials.
  • The node expects the Leanios API to be accessible at https://{Subdomain}.leanios.com/api/v1/products.

Troubleshooting

  • Authentication errors: If the credentials are incorrect or missing, the node will fail to authenticate. Ensure that the API username and password are correctly configured in the node credentials.
  • Invalid JSON body: If the jsonBody property contains malformed JSON or invalid product data, the API may reject the request. Validate the JSON structure before execution.
  • Incorrect Subdomain: Using an incorrect or misspelled subdomain will cause connection failures. Verify the subdomain matches your Leanios account.
  • API errors: Any error messages returned by the Leanios API will be surfaced by the node. Review the message for clues, such as missing required fields or invalid values.
  • Network issues: Ensure that the n8n instance has network access to the Leanios API endpoint.

Links and References

Discussion