Shopware icon

Shopware

Shopware

Actions778

Order Line Item → Update Order Line Item

AI-generated

Overview

This node updates an existing Order Line Item in the Shopware system. It is useful for scenarios where you need to modify details of a specific order line item, such as changing the quantity, price, product details, or other attributes associated with the order line item. For example, you might use this node to update the quantity of a product in an order or to adjust pricing information after a discount is applied.

Use Case Examples

  1. Updating the quantity and price of a specific order line item in an order.
  2. Modifying product details or custom fields of an order line item to reflect changes in the order.

Properties

Name Meaning
Id Identifier for the order_line_item, used to specify which order line item to update.
Response Data format for response. Empty if none is provided.
Version Id Version identifier for the order line item, used for version control.
Order Id Identifier of the order to which the line item belongs.
Order Version Id Version identifier for the order.
Product Id Identifier of the product associated with the order line item.
Product Version Id Version identifier for the product.
Promotion Id Identifier of the promotion applied to the order line item.
Parent Id Identifier of the parent order line item, if applicable.
Parent Version Id Version identifier for the parent order line item.
Cover Id Identifier for the cover media associated with the order line item.
Identifier Unique identifier for the order line item.
Referenced Id Referenced identifier, possibly linking to another entity.
Quantity Quantity of the product in the order line item.
Label Label or name of the order line item.
Payload Additional JSON payload data associated with the order line item.
Good Boolean flag indicating if the item is a good (true) or service (false).
Removable Boolean flag indicating if the item can be removed from the order.
Stackable Boolean flag indicating if the item can be stacked with similar items.
Position Position of the order line item in the order.
States JSON array representing the states of the order line item.
Price JSON object representing the price details of the order line item.
Price Definition JSON object defining the price structure or rules.
Unit Price Unit price of the product in the order line item.
Total Price Total price for the quantity of the product in the order line item.
Description Description of the order line item.
Type Type of the order line item.
Custom Fields JSON object for custom fields associated with the order line item.
Created At Creation timestamp of the order line item.
Updated At Last update timestamp of the order line item.
Cover JSON object representing the cover media and related data.
Order JSON object representing the order details associated with the line item.
Product JSON object representing the product details associated with the line item.
Promotion JSON object representing promotion details applied to the line item.
Order Delivery Positions JSON array representing delivery positions related to the order line item.
Order Transaction Capture Refund Positions JSON array representing refund positions related to transaction captures for the order line item.
Downloads JSON array representing downloadable items associated with the order line item.
Parent JSON object representing the parent order line item details.
Children JSON array representing child order line items.
Request Options Settings for request options such as batching, SSL, proxy, and timeout.

Output

JSON

  • id - Identifier of the updated order line item.
  • orderId - Identifier of the order to which the line item belongs.
  • productId - Identifier of the product associated with the line item.
  • quantity - Quantity of the product in the updated order line item.
  • label - Label or name of the updated order line item.
  • price
    • listPrice - List price details of the updated order line item.
    • regulationPrice - Regulation price details of the updated order line item.
  • states - States of the updated order line item.
  • customFields - Custom fields associated with the updated order line item.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Order Id, Identifier, Quantity, Label, States, Price) are provided and correctly formatted.
  • Check API credentials and permissions to ensure the node can update order line items.
  • Verify JSON fields (e.g., Price, States, Custom Fields) are valid JSON and properly structured.
  • If the update fails, review the API response for error messages indicating missing or invalid data.

Discussion