ScaleFluidly icon

ScaleFluidly

Consume ScaleFluidly API

Actions224

Overview

The ScaleFluidly node integrates with the ScaleFluidly API to perform various operations related to pricing, quotes, configuration, and more. Specifically, for the Pricing resource and the Apply Discount operation, this node allows users to apply discounts programmatically by sending a structured request to the ScaleFluidly pricing API endpoint.

This node is beneficial in scenarios where automated discount application is needed within sales or pricing workflows, such as dynamically adjusting quote prices based on business rules or promotions. For example, a sales automation workflow could use this node to apply volume-based discounts to a quote before sending it to a customer.

Properties

Name Meaning
Environment The target environment for the API call. Options: Dev (development), QA (quality assurance), Local (local server).
Request JSON object containing the request body specific to the "apply_discount" operation. This includes all necessary parameters to define the discount application details.

Output

The node outputs an array of JSON objects representing the responses from the ScaleFluidly API for each input item processed. Each JSON object contains the result of the discount application operation, typically including confirmation of the discount applied, updated pricing details, or error information if the operation failed.

If the API returns binary data (not indicated explicitly here), it would represent associated files or documents related to the pricing or discount operation, but this node primarily handles JSON responses.

Dependencies

  • Requires access to the ScaleFluidly API endpoints.
  • Optionally uses an API authentication token (bearer token) passed via the authorization header in the input data's JSON under headers.authorization.
  • No explicit internal credential names are exposed; users must provide appropriate API authentication tokens or credentials configured in n8n.
  • The node supports different environments by selecting the base URL for the API calls.

Troubleshooting

  • Bearer token not found: If the first input item does not contain an authorization token in its headers, and no static authorization header was previously set, the node will throw an error. Ensure that the input JSON includes a valid bearer token in json.headers.authorization.
  • Operation not found: If the specified operation (intent) does not match any known API endpoint mapping, the node throws an error indicating the operation is invalid. Verify the operation name matches supported ScaleFluidly API operations.
  • API request failures: Network issues, invalid request bodies, or incorrect environment URLs can cause request failures. Check the environment selection and the structure of the JSON request body.
  • Invalid JSON in Request property: The Request property must be a valid JSON object matching the expected API schema for applying discounts. Invalid JSON or missing required fields may cause errors.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion