ScaleFluidly icon

ScaleFluidly

Consume ScaleFluidly API

Actions224

Overview

The ScaleFluidly node integrates with the ScaleFluidly API to perform various operations across multiple resources, including Pricing. Specifically, for the Pricing resource and the "Apply Promotions" operation, this node sends a custom JSON request body to the ScaleFluidly API endpoint responsible for applying promotions to pricing data.

This node is beneficial in scenarios where automated promotion application is needed within pricing workflows, such as dynamically adjusting prices based on promotional rules or campaigns. For example, a sales automation workflow could use this node to apply current promotions to a quote or product pricing before sending it to customers.

Properties

Name Meaning
Environment The target environment URL for the ScaleFluidly API. Options include:
- Dev (https://documentation-dev.scalefluidly.com)
- QA (https://documentation.scalefluidly.com)
- Local (http://localhost:8400)
Request A JSON object representing the request body sent to the API for the "Apply Promotions" operation. This contains all necessary details for the promotion application logic as defined by the ScaleFluidly API schema.

Output

  • The node outputs an array of JSON objects corresponding to the responses from the ScaleFluidly API for each input item.
  • Each output JSON object contains the API response data related to the applied promotions, typically including updated pricing information after promotions are applied.
  • The node does not explicitly handle binary data output.

Dependencies

  • Requires access to the ScaleFluidly API endpoints specified by the chosen environment.
  • Optionally uses an API authentication token if provided in the input data headers; otherwise, it attempts to use configured credentials named generically as an API key credential.
  • No additional external dependencies beyond standard HTTP request capabilities provided by n8n.

Troubleshooting

  • Bearer token not found: If the first input item does not contain an authorization header with a bearer token and no API credential is configured, the node will throw an error. Ensure that either the input includes a valid bearer token or the node is configured with appropriate API credentials.
  • Operation not found: If the operation name (intent) does not map to a known API endpoint, the node throws an error indicating the operation is invalid. Verify the operation name matches one of the supported operations.
  • Invalid JSON in Request: The request body must be valid JSON. Malformed JSON will cause the API call to fail.
  • API Endpoint Unreachable: Selecting the wrong environment or having network issues may cause request failures. Confirm the environment URL is correct and accessible.

Links and References


This summary focuses on the Pricing resource's "Apply Promotions" operation as requested, describing how the node constructs and sends requests to the ScaleFluidly API and handles responses accordingly.

Discussion