Shopware icon

Shopware

Shopware

Actions778

Order Line Item Download → Update Order Line Item Download

AI-generated

Overview

This node updates an existing Order Line Item Download in the Shopware system. It is useful for scenarios where you need to modify details of a downloadable item associated with an order line item, such as changing access permissions, updating media references, or adjusting metadata. For example, you might use this node to grant or revoke access to a digital product download after an order is processed or to update the download's position or version information.

Use Case Examples

  1. Updating the accessGranted property to true or false to control user access to a digital download.
  2. Changing the mediaId to point to a different media file for the download.
  3. Modifying custom fields or metadata associated with the order line item download.

Properties

Name Meaning
Id Identifier for the order_line_item_download, required to specify which download to update.
_response Data format for the response, used as a query parameter to control response format.
Version Id Version identifier for the order line item download, used for version control.
Order Line Item Id Identifier of the order line item associated with the download, required.
Order Line Item Version Id Version identifier for the order line item.
Media Id Identifier of the media file associated with the download, required.
Position Position or order of the download item, required.
Access Granted Boolean flag indicating if access to the download is granted, required.
Custom Fields JSON object for any custom fields related to the download.
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, including nested related data.
Media JSON object representing the media details associated with the download.

Output

JSON

  • id - The unique identifier of the updated order line item download.
  • orderLineItemId - The identifier of the associated order line item.
  • mediaId - The identifier of the associated media file.
  • position - The position of the download item.
  • accessGranted - Indicates whether access to the download is granted.
  • customFields - Custom fields data associated with the download.
  • createdAt - Creation timestamp of the download.
  • updatedAt - Last update timestamp of the download.
  • orderLineItem - Detailed JSON object of the order line item.
  • media - Detailed JSON object of the media associated with the download.

Dependencies

  • Shopware API with appropriate credentials

Troubleshooting

  • Ensure all required fields (id, orderLineItemId, mediaId, position, accessGranted) are provided to avoid validation errors.
  • Check API credentials and base URL configuration to prevent authentication or connection issues.
  • Verify JSON format for customFields, orderLineItem, and media inputs to avoid parsing errors.
  • If the API returns errors, review the response message for details on missing or invalid data and adjust inputs accordingly.

Discussion