Shopware icon

Shopware

Shopware

Actions778

Order Line Item Download → Create Order Line Item Download

AI-generated

Overview

This node operation creates a new Order Line Item Download in the Shopware system. It is useful for scenarios where you need to programmatically add downloadable media linked to specific order line items, such as digital products or files associated with an order. For example, an e-commerce platform can use this node to automate the process of granting customers access to downloadable content after purchase.

Use Case Examples

  1. Creating a download link for a purchased digital product's order line item.
  2. Adding media files to an order line item for customer access.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the order line item download to be created.
Version Id The version identifier for the order line item download, if applicable.
Order Line Item Id The identifier of the order line item to which the download is linked.
Order Line Item Version Id The version identifier of the order line item, if applicable.
Media Id The identifier of the media file to be linked as a download.
Position The position or order of the download item in the list.
Access Granted Boolean flag indicating whether access to the download is granted.
Custom Fields Custom fields in JSON format for additional data.
Created At Timestamp for when the download was created.
Updated At Timestamp for when the download was last updated.
Order Line Item JSON object representing the order line item details.
Media JSON object representing the media details linked to the download.

Output

JSON

  • id - The unique identifier of the created order line item download.
  • versionId - The version identifier of the created order line item download.
  • orderLineItemId - The identifier of the order line item linked to the download.
  • orderLineItemVersionId - The version identifier of the order line item linked to the download.
  • mediaId - The identifier of the media linked to the download.
  • position - The position of the download item.
  • accessGranted - Indicates if access to the download is granted.
  • customFields - Custom fields associated with the download.
  • createdAt - Creation timestamp of the download.
  • updatedAt - Last update timestamp of the download.
  • orderLineItem - Details of the order line item as a JSON object.
  • media - Details of the media linked to the download as a JSON object.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Order Line Item Id, Media Id, Position, Access Granted) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication errors occur.
  • Verify JSON format for customFields, orderLineItem, and media properties to prevent parsing errors.

Discussion