Shopware icon

Shopware

Shopware

Actions778

Order → Update Order

AI-generated

Overview

This node operation updates an existing order in the Shopware system. It allows users to modify various details of an order such as billing address, currency, language, sales channel, order date, pricing, shipping costs, customer information, line items, transactions, documents, tags, and state information. This operation is useful for e-commerce administrators or automation workflows that need to programmatically update order details in Shopware, for example, updating the billing address after customer changes or adjusting order line items based on inventory changes.

Use Case Examples

  1. Update the billing address and order date of an existing order.
  2. Modify the line items and transactions of an order to reflect a refund or additional purchase.
  3. Change the sales channel or currency of an order to align with customer preferences.

Properties

Name Meaning
Id Identifier for the order, required to specify which order to update.
Response Data format for response. Empty if none is provided.
Version Id Version identifier of the order.
Auto Increment Auto increment number for the order.
Order Number Order number string.
Billing Address Id Identifier for the billing address, required.
Billing Address Version Id Version identifier for the billing address.
Currency Id Identifier for the currency used in the order, required.
Language Id Identifier for the language used in the order, required.
Sales Channel Id Identifier for the sales channel, required.
Order Date Time Date and time of the order, required.
Order Date Date of the order.
Price Price details of the order in JSON format.
Amount Total Total amount of the order.
Amount Net Net amount of the order.
Position Price Price per position in the order.
Tax Status Tax status of the order.
Shipping Costs Shipping costs details in JSON format.
Shipping Total Total shipping cost.
Currency Factor Currency factor for the order, required.
Deep Link Code Deep link code for the order.
Affiliate Code Affiliate code associated with the order.
Campaign Code Campaign code associated with the order.
Customer Comment Customer comment on the order.
Source Source of the order.
State Id State identifier of the order, required.
Rule Ids Rule identifiers applied to the order in JSON format.
Custom Fields Custom fields for the order in JSON format.
Created By Id Identifier of the user who created the order.
Updated By Id Identifier of the user who last updated the order.
Item Rounding Rounding configuration for items in JSON format, required.
Total Rounding Rounding configuration for total in JSON format, required.
Created At Creation timestamp of the order.
Updated At Last update timestamp of the order.
State Machine State State machine state details in JSON format.
Order Customer Order customer details in JSON format.
Currency Currency details in JSON format.
Language Language details in JSON format.
Sales Channel Sales channel details in JSON format.
Addresses Addresses related to the order in JSON format.
Billing Address Billing address details in JSON format.
Deliveries Delivery details in JSON format.
Line Items Line items of the order in JSON format.
Transactions Transaction details in JSON format.
Documents Documents related to the order in JSON format.
Tags Tags associated with the order in JSON format.
Created By User details who created the order in JSON format.
Updated By User details who last updated the order in JSON format.

Output

JSON

  • id - Identifier of the updated order
  • versionId - Version identifier of the updated order
  • orderNumber - Order number
  • billingAddressId - Billing address identifier
  • currencyId - Currency identifier
  • languageId - Language identifier
  • salesChannelId - Sales channel identifier
  • orderDateTime - Date and time of the order
  • amountTotal - Total amount of the order
  • amountNet - Net amount of the order
  • taxStatus - Tax status of the order
  • shippingTotal - Total shipping cost
  • stateId - State identifier of the order
  • customFields - Custom fields associated with the order
  • createdAt - Creation timestamp of the order
  • updatedAt - Last update timestamp of the order
  • lineItems - Line items of the order
  • transactions - Transaction details of the order
  • documents - Documents related to the order
  • tags - Tags associated with the order

Dependencies

  • Shopware API authentication credentials

Troubleshooting

  • Ensure all required fields (e.g., Id, Billing Address Id, Currency Id, Language Id, Sales Channel Id, Order Date Time, State Id, Item Rounding, Total Rounding) are provided to avoid validation errors.
  • Verify that JSON fields (e.g., Price, Shipping Costs, Rule Ids, Custom Fields, State Machine State, Order Customer, Currency, Language, Sales Channel, Addresses, Billing Address, Deliveries, Line Items, Transactions, Documents, Tags, Created By, Updated By) are correctly formatted JSON strings to prevent parsing errors.
  • Check API credentials and endpoint URL configuration to ensure successful connection to the Shopware API.
  • If encountering timeout or SSL issues, adjust the request options such as timeout duration, proxy settings, or SSL certificate validation settings.

Discussion