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 Add or Update Category Discounts operation, it enables managing category discount data by sending a JSON request body to the appropriate ScaleFluidly API endpoint.

Common scenarios where this node is beneficial include automating administrative tasks related to pricing and discounts within an organization's sales or product management workflows. For example, a user can programmatically add new discounts or update existing ones on product categories without manual intervention, ensuring pricing strategies are consistently applied.

Practical example:

  • Automatically updating category discounts based on seasonal promotions.
  • Adding new discount rules when onboarding new product categories.

Properties

Name Meaning
Environment The target environment for the API call. Options: Dev (development), QA (quality assurance), Local (local server). Determines the base URL for the API requests.
Request A JSON object representing the request body sent to the API. This contains the details of the category discounts to add or update. It must conform to the expected API schema for this operation.

Output

The node outputs an array of JSON objects corresponding to the responses from the ScaleFluidly API for each input item processed. Each JSON object contains the API response data relevant to the Add or Update Category Discounts operation.

If the API returns binary data (not indicated in this operation), it would be included accordingly, but for this operation, the output is purely JSON-based.

Dependencies

  • Requires access to the ScaleFluidly API endpoints.
  • Needs an API authentication token (bearer token) provided via HTTP headers for authorization.
  • The node optionally supports using an n8n credential for authentication if configured.
  • The environment property determines which ScaleFluidly API base URL is used.

Troubleshooting

  • Bearer token not found error: If the first input item does not contain an authorization header with a bearer token, and no prior token was stored, the node will throw an error. Ensure that the authorization token is correctly passed in the input data or configured in credentials.
  • Operation not found error: If the specified operation or intent does not match any known API endpoint mapping, the node will throw an error indicating the operation is not found. Verify the operation name is correct and supported.
  • Invalid JSON in Request property: Since the request body is a JSON object, malformed JSON will cause the API call to fail. Validate the JSON structure before running the node.
  • API connectivity issues: Network problems or incorrect environment URLs may cause request failures. Confirm the environment setting matches the intended API server and that network access is available.

Links and References

Discussion