Shopware icon

Shopware

Shopware

Actions778

Order Delivery Position → Create Order Delivery Position

AI-generated

Overview

This node operation creates a new Order Delivery Position in the Shopware system. It is useful for automating the addition of delivery positions to orders, which can include details such as pricing, quantity, and associated order line items. Practical examples include integrating order management workflows where delivery positions need to be programmatically created based on order data or external triggers.

Use Case Examples

  1. Automatically create delivery positions for orders in an e-commerce workflow.
  2. Add detailed delivery position information including pricing and quantities to an order during fulfillment processing.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the order delivery position to be created.
Version Id Version identifier for the order delivery position.
Order Delivery Id Identifier of the order delivery to which this position belongs.
Order Delivery Version Id Version identifier for the order delivery.
Order Line Item Id Identifier of the order line item associated with this delivery position.
Order Line Item Version Id Version identifier for the order line item.
Price JSON object representing the price details including list price and regulation price.
Unit Price Unit price for the delivery position.
Total Price Total price for the delivery position.
Quantity Quantity of items in the delivery position.
Custom Fields Custom fields as a JSON object for additional data.
Created At Timestamp for when the delivery position was created.
Updated At Timestamp for when the delivery position was last updated.
Order Delivery JSON object containing detailed information about the order delivery, including tracking codes, shipping costs, state machine state, and related nested data.
Order Line Item JSON object containing detailed information about the order line item, including states, price, cover, and related nested data.
Request Options Node settings for request options such as batching, SSL certificate validation, proxy, and timeout settings.

Output

JSON

  • id - Unique identifier of the created order delivery position.
  • versionId - Version identifier of the created order delivery position.
  • orderDeliveryId - Identifier of the associated order delivery.
  • orderLineItemId - Identifier of the associated order line item.
  • price - Price details of the created delivery position.
  • unitPrice - Unit price of the created delivery position.
  • totalPrice - Total price of the created delivery position.
  • quantity - Quantity of items in the created delivery position.
  • customFields - Custom fields data of the created delivery position.
  • createdAt - Creation timestamp of the delivery position.
  • updatedAt - Last update timestamp of the delivery position.
  • orderDelivery - Detailed information about the order delivery.
  • orderLineItem - Detailed information about the order line item.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Order Delivery Id, Order Line Item Id) are provided to avoid validation errors.
  • If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured.
  • Timeout errors can occur if the server is slow to respond; adjust the timeout setting in Request Options accordingly.
  • If SSL certificate validation fails and you trust the endpoint, enable 'Ignore SSL Issues' in Request Options to bypass SSL errors.

Discussion