Shopware icon

Shopware

Shopware

Actions778

Promotion Individual Code → Create Promotion Individual Code

AI-generated

Overview

This node operation creates a new Promotion Individual Code in the Shopware system. It is useful for scenarios where you need to generate or register unique promotion codes tied to specific promotions, enabling targeted discount or marketing campaigns. For example, a marketing team can use this node to create individual codes for a seasonal sale or special event, ensuring each code is unique and linked to a particular promotion.

Use Case Examples

  1. Creating a unique discount code for a specific promotion to be distributed to customers.
  2. Registering individual promotion codes for tracking usage and redemption in a campaign.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the promotion individual code to be created.
Promotion Id The identifier of the promotion to which this individual code belongs.
Code The actual promotion code string that customers will use.
Payload Additional JSON payload data to include in the creation request.
Created At Timestamp indicating when the promotion individual code was created.
Updated At Timestamp indicating when the promotion individual code was last updated.
Promotion A JSON object representing the promotion details associated with the individual code.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created promotion individual code.
  • promotionId - The identifier of the associated promotion.
  • code - The promotion code string created.
  • payload - Additional data included in the promotion individual code.
  • createdAt - Creation timestamp of the promotion individual code.
  • updatedAt - Last update timestamp of the promotion individual code.
  • promotion - Details of the associated promotion as a JSON object.

Dependencies

  • An API key credential for Shopware Admin API authentication.

Troubleshooting

  • Ensure all required fields (Id, Promotion Id, Code) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication fails.
  • If the response format is not as expected, verify the '_response' property setting (basic or detail).
  • For network issues, review proxy and SSL settings in Request Options.

Discussion