ScaleFluidly icon

ScaleFluidly

Consume ScaleFluidly API

Actions98

Overview

This node integrates with the ScaleFluidly API, allowing users to perform various operations across multiple resources such as Admin, Quote, Configure, Pricing, and MCP. Specifically, for the Admin resource and the Get Category Discount By ID operation, the node fetches detailed information about a specific category discount by its identifier.

Typical use cases include:

  • Retrieving discount details for a product category in sales or pricing workflows.
  • Automating administrative tasks related to category discounts within a sales platform.
  • Integrating category discount data into broader automation processes like quote generation or pricing adjustments.

For example, a user might want to automatically fetch the discount details of a category when preparing a sales quote to ensure accurate pricing.

Properties

Name Meaning
Environment The target environment for the API call. Options: Dev (development server), QA (quality assurance server), Local (local server). Determines the base URL for requests.
Request JSON object representing the request body payload sent to the API. Required for most operations including this one. It contains parameters needed by the API endpoint.

Note: For the Get Category Discount By ID operation under the Admin resource, the "Request" property should include the necessary identifiers or filters required by the API to retrieve the specific category discount.

Output

The node outputs an array of JSON objects corresponding to the API responses for each input item processed. Each JSON object contains the data returned from the ScaleFluidly API for the requested operation.

For the Get Category Discount By ID operation, the output JSON will contain the details of the category discount fetched by the given ID, such as discount percentage, applicable categories, validity period, and other metadata as defined by the ScaleFluidly API.

If the API returns binary data (not typical for this operation), it would be included accordingly, but this operation primarily deals with JSON data.

Dependencies

  • Requires access to the ScaleFluidly API endpoints.
  • Needs an API authentication token (bearer token) provided via HTTP headers for authorization.
  • The node supports using either direct bearer tokens passed in input data or credentials configured in n8n (an API key credential).
  • The "Environment" property must be set correctly to point to the desired ScaleFluidly API environment (Dev, QA, or Local).

Troubleshooting

  • Bearer token not found error: This occurs if the first input item does not contain an authorization header with a bearer token and no credential is configured. Ensure that the API token is provided either in the input data headers or through the node's credential configuration.
  • Operation not found error: If the specified operation name does not match any known operation in the intent-to-URL mapping, the node throws an error. Verify that the operation name is correct and supported.
  • API request failures: Network issues, incorrect environment URLs, or invalid request bodies can cause errors. Check the environment setting, request JSON structure, and API token validity.
  • Invalid JSON in Request property: Since the request body is expected as JSON, malformed JSON will cause errors. Validate the JSON format before execution.

Links and References


This summary focuses on the static analysis of the node's execute method and properties relevant to the Admin resource's Get Category Discount By ID operation.

Discussion