Shopware icon

Shopware

Shopware

Actions778

Rule → Get Rule

AI-generated

Overview

This node operation retrieves a specific rule by its identifier from the Shopware system. It is useful in scenarios where you need to fetch detailed information about a particular rule, such as for validation, display, or further processing within an automation workflow.

Use Case Examples

  1. Fetch a rule by its ID to verify its conditions before applying it in a sales process.
  2. Retrieve rule details to display in a dashboard or report.

Properties

Name Meaning
Id Identifier for the rule to be retrieved, required to specify which rule to get.
Request Options Additional options to customize the request behavior, including batching, SSL certificate validation, proxy settings, and timeout configuration.

Output

JSON

  • id - The unique identifier of the retrieved rule.
  • name - The name of the retrieved rule.
  • conditions - The conditions defined within the rule.
  • createdAt - Timestamp when the rule was created.
  • updatedAt - Timestamp when the rule was last updated.

Dependencies

  • Requires an API key credential for Shopware Admin API authentication.

Troubleshooting

  • Ensure the 'Id' property is correctly set to a valid rule identifier; otherwise, the request will fail.
  • If SSL certificate validation errors occur, consider enabling 'Ignore SSL Issues' option, but be aware of security risks.
  • Check proxy settings if the request fails due to network issues.
  • Timeout errors can be resolved by increasing the 'Timeout' value in request options.

Discussion