Shopware icon

Shopware

Shopware

Actions778

Promotion Discount Prices → Create Promotion Discount Prices

AI-generated

Overview

This node operation creates promotion discount prices in the Shopware system. It is useful for automating the addition of discount prices associated with promotions, allowing users to specify details such as discount ID, currency ID, price, and timestamps. This can be applied in scenarios where businesses want to programmatically manage promotional pricing for products or services.

Use Case Examples

  1. Creating a new discount price for a promotion with a specific currency and price value.
  2. Automating the update of promotion discount prices based on marketing campaigns or seasonal sales.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the promotion discount price entry.
Discount Id The identifier of the discount associated with the promotion discount price.
Currency Id The identifier of the currency in which the discount price is specified.
Price The numeric value of the discount price.
Created At Timestamp indicating when the promotion discount price was created.
Updated At Timestamp indicating when the promotion discount price was last updated.
Promotion Discount A JSON object representing the promotion discount details, including nested promotion and discount rules.
Currency A JSON object representing the currency details related to the promotion discount price.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy usage, and timeout configuration.

Output

JSON

  • id - The unique identifier of the created promotion discount price.
  • discountId - The discount identifier associated with the promotion discount price.
  • currencyId - The currency identifier for the discount price.
  • price - The numeric value of the discount price.
  • createdAt - Timestamp when the promotion discount price was created.
  • updatedAt - Timestamp when the promotion discount price was last updated.
  • promotionDiscount - The detailed JSON object of the promotion discount including nested promotion data.
  • currency - The detailed JSON object of the currency related to the promotion discount price.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Discount Id, Currency Id, Price) are provided to avoid validation errors.
  • If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured.
  • Timeout errors can occur if the server is slow; adjust the timeout setting in Request Options accordingly.
  • If SSL certificate validation fails, consider enabling the 'Ignore SSL Issues' option if appropriate for your environment.

Discussion