Shopware icon

Shopware

Shopware

Actions778

Promotion Individual Code → Update Promotion Individual Code

AI-generated

Overview

This node updates an existing Promotion Individual Code in the Shopware system. It is useful for scenarios where you need to modify details of a specific promotion code, such as changing the code itself, associated promotion ID, or other metadata like creation and update timestamps. For example, you might use this node to update a discount code's details after a marketing campaign adjustment.

Use Case Examples

  1. Updating the code and promotion ID of a specific promotion individual code to reflect new campaign details.
  2. Modifying the payload or metadata of a promotion individual code to correct or enhance its information.

Properties

Name Meaning
Id Identifier for the promotion_individual_code, used to specify which promotion individual code to update.
Response Data format for the response, used to specify the desired response format from the API.
Promotion Id The ID of the promotion associated with the individual code, required for the update.
Code The actual promotion code string to be updated.
Payload Additional JSON payload data related to the promotion individual code.
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 complex 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 identifier of the updated promotion individual code.
  • promotionId - The ID of the promotion associated with the updated individual code.
  • code - The updated promotion code string.
  • payload - The updated JSON payload data related to the promotion individual code.
  • createdAt - The creation timestamp of the promotion individual code.
  • updatedAt - The last update timestamp of the promotion individual code.
  • promotion - The updated promotion details as a JSON object.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the existing promotion individual code's identifier to avoid 'not found' errors.
  • Verify that required fields like 'Promotion Id' and 'Code' are provided to prevent validation errors.
  • Check network and proxy settings if requests fail due to connectivity issues.
  • If SSL errors occur, consider enabling 'Ignore SSL Issues' option cautiously.

Discussion