Shopware icon

Shopware

Shopware

Actions778

Product Price → Create Product Price

AI-generated

Overview

This node operation creates a new product price entry in the Shopware system. It is useful for e-commerce platforms or inventory management systems that need to programmatically add pricing details for products, including different price rules, quantities, and custom fields. For example, it can be used to set tiered pricing based on quantity or to apply specific pricing rules for promotions or customer groups.

Use Case Examples

  1. Creating a new price for a product with a specific rule and quantity range.
  2. Adding custom pricing fields for a product variant.
  3. Setting detailed pricing information including list price and regulation price for a product.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the product price entry to be created.
Version Id The version identifier for the product price entry.
Product Id The identifier of the product to which the price applies.
Product Version Id The version identifier of the product.
Rule Id The identifier of the pricing rule that applies to this product price.
Price The price details in JSON format, including list price and regulation price.
Quantity Start The starting quantity for which this price applies.
Quantity End The ending quantity for which this price applies.
Custom Fields Additional custom fields in JSON format for the product price.
Created At The creation timestamp of the product price entry.
Updated At The last update timestamp of the product price entry.
Product Detailed JSON object representing the product and its related entities.
Rule Detailed JSON object representing the pricing rule and its related entities.
Request Options Settings for request behavior such as batching, SSL issues, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created product price.
  • versionId - The version identifier of the created product price.
  • productId - The identifier of the product associated with the price.
  • productVersionId - The version identifier of the product.
  • ruleId - The identifier of the pricing rule applied.
  • price - The price details including list price and regulation price.
  • quantityStart - The starting quantity for which the price applies.
  • quantityEnd - The ending quantity for which the price applies.
  • customFields - Any additional custom fields associated with the product price.
  • createdAt - Timestamp when the product price was created.
  • updatedAt - Timestamp when the product price was last updated.
  • product - Detailed product information in JSON format.
  • rule - Detailed pricing rule information in JSON format.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Product Id, Rule Id, Price, Quantity Start) are provided to avoid validation errors.
  • If the API returns authentication errors, verify the API key credential and base URL configuration.
  • Timeout errors can occur if the server is slow; adjust the timeout setting in Request Options accordingly.
  • If SSL certificate validation fails, enable 'Ignore SSL Issues' in Request Options to bypass this check.

Discussion