Shopware icon

Shopware

Shopware

Actions778

Product Download → Create Product Download

AI-generated

Overview

This node operation creates a new Product Download entry in the Shopware system. It is useful for managing downloadable products, such as digital goods or software, by associating media files with products for customers to access after purchase. For example, an e-commerce store selling digital music or software can use this node to upload and link downloadable files to specific products.

Use Case Examples

  1. Create a new downloadable file entry for a product by specifying the product ID, media ID, and other optional details like version, position, and custom fields.
  2. Manage product downloads by adding or updating downloadable content associated with products in the Shopware platform.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the product download entry (required).
Version Id Version identifier for the product download entry, if applicable.
Product Id Identifier of the product to which the download is associated (required).
Product Version Id Version identifier of the product, if applicable.
Media Id Identifier of the media file to be linked as a download (required).
Position Position or order of the download in the list, default is 0.
Custom Fields Custom fields in JSON format for additional data related to the product download.
Created At Timestamp for when the product download entry was created.
Updated At Timestamp for when the product download entry was last updated.
Product JSON object representing the product details associated with the download.
Media JSON object representing the media details associated with the download.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - Unique identifier of the created product download.
  • versionId - Version identifier of the created product download.
  • productId - Identifier of the product associated with the download.
  • productVersionId - Version identifier of the product associated with the download.
  • mediaId - Identifier of the media file linked as the download.
  • position - Position or order of the download in the list.
  • customFields - Custom fields data associated with the product download.
  • createdAt - Creation timestamp of the product download entry.
  • updatedAt - Last update timestamp of the product download entry.
  • product - Detailed JSON object of the product associated with the download.
  • media - Detailed JSON object of the media associated with the download.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

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

Discussion