Shopware icon

Shopware

Shopware

Actions778

Order Line Item → Create Order Line Item

AI-generated

Overview

This node operation creates a new Order Line Item in the Shopware system. It is useful for automating the addition of items to an order, such as when processing e-commerce transactions or managing order details programmatically. For example, it can be used to add a product to a customer's order with specific quantities, pricing, and related metadata.

Use Case Examples

  1. Adding a product to an existing order with specified quantity and price.
  2. Creating a promotional item line in an order to apply discounts or special offers.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the order line item.
Version Id Version identifier for the order line item.
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 line item.
Product Version Id Version identifier for the product.
Promotion Id Identifier of the promotion applied to the line item.
Parent Id Identifier of the parent line item if this is a child item.
Parent Version Id Version identifier for the parent line item.
Cover Id Identifier for the cover media associated with the line item.
Identifier Unique identifier string for the line item.
Referenced Id Referenced identifier related to the line item.
Quantity Quantity of the product in the line item.
Label Label or name of the line item.
Payload Additional JSON payload data for the line item.
Good Boolean indicating if the item is a good (true) or service (false).
Removable Boolean indicating if the line item can be removed.
Stackable Boolean indicating if the line item can be stacked with others.
Position Position index of the line item in the order.
States JSON array representing the states of the line item.
Price JSON object defining the price details of the line item.
Price Definition JSON object defining the price calculation rules.
Unit Price Unit price of the product in the line item.
Total Price Total price for the quantity of the line item.
Description Description text for the line item.
Type Type of the line item.
Custom Fields Custom fields as JSON object for additional data.
Created At Creation timestamp of the line item.
Updated At Last update timestamp of the line item.
Cover JSON object representing cover media and related data.
Order JSON object representing the order details related to the line item.
Product JSON object representing the product details related to the line item.
Promotion JSON object representing promotion details related to the line item.
Order Delivery Positions JSON array representing delivery positions related to the line item.
Order Transaction Capture Refund Positions JSON array representing refund positions related to the line item.
Downloads JSON array representing downloadable items related to the line item.
Parent JSON object representing the parent line item details.
Children JSON array representing child line items.

Output

JSON

  • id - Unique identifier of the created 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 line item.
  • label - Label or name of the line item.
  • price - Price details of the line item.
  • states - States of the line item.
  • createdAt - Creation timestamp of the line item.
  • updatedAt - Last update timestamp of the 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 base URL configuration for connectivity issues.
  • Verify JSON fields (Payload, States, Price, Price Definition, Custom Fields, Cover, Order, Product, Promotion, Order Delivery Positions, Order Transaction Capture Refund Positions, Downloads, Parent, Children) are valid JSON and properly structured.

Discussion