Shopware icon

Shopware

Shopware

Actions778

Promotion Individual Code → Get Promotion Individual Code

AI-generated

Overview

This node retrieves a specific promotion individual code by its identifier from the Shopware system. It is useful in scenarios where you need to fetch detailed information about a particular promotion code, such as validating a code, checking its status, or retrieving associated promotion details.

Use Case Examples

  1. Fetching a promotion individual code by its ID to verify its validity before applying a discount.
  2. Retrieving promotion code details to display in a customer loyalty dashboard.

Properties

Name Meaning
Id Identifier for the promotion_individual_code, used to specify which promotion code to retrieve.
Request Options Settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • id - The unique identifier of the retrieved promotion individual code.
  • code - The actual promotion code string.
  • promotionId - Identifier of the associated promotion.
  • status - Current status of the promotion individual code (e.g., active, used, expired).
  • createdAt - Timestamp when the promotion individual code was created.
  • updatedAt - Timestamp when the promotion individual code 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 promotion individual code identifier; otherwise, the node will fail to retrieve data.
  • If SSL certificate validation fails and the request is blocked, enable 'Ignore SSL Issues' to bypass this, but be aware of security risks.
  • Check proxy settings if requests fail due to network restrictions.
  • Timeout errors may occur if the server is slow to respond; increase the timeout setting if needed.

Links

Discussion