Shopware icon

Shopware

Shopware

Actions778

Order Transaction → Update Order Transaction

AI-generated

Overview

This node updates an existing Order Transaction in the Shopware system. It is useful for scenarios where you need to modify details of a specific order transaction, such as changing payment method, amount, state, or other related data. For example, you might use this node to update the payment method or capture details of an order transaction after a payment is processed.

Use Case Examples

  1. Updating the payment method of an order transaction.
  2. Modifying the amount or state of an order transaction after a refund or capture.

Properties

Name Meaning
Id Identifier for the order_transaction, required to specify which transaction to update.
Response Data format for response, optional query parameter to specify response format.
Version Id Version identifier of the order transaction, used for concurrency control.
Order Id Identifier of the order associated with the transaction, required.
Order Version Id Version identifier of the order.
Payment Method Id Identifier of the payment method used in the transaction, required.
Amount Amount details of the transaction, including list price and regulation price, required.
Validation Data Additional validation data for the transaction.
State Id State identifier of the transaction, required.
Custom Fields Custom fields for additional data.
Created At Creation timestamp of the transaction.
Updated At Last update timestamp of the transaction.
State Machine State State machine state details of the transaction, including transitions and history.
Order Detailed order data associated with the transaction, including pricing, customer, and state information.
Payment Method Detailed payment method data associated with the transaction.
Captures Capture details related to the transaction, including amounts and state machine states.

Output

JSON

  • id - Identifier of the updated order transaction.
  • orderId - Identifier of the associated order.
  • paymentMethodId - Identifier of the payment method used.
  • amount - Amount details of the transaction.
  • stateId - State identifier of the transaction.
  • createdAt - Creation timestamp of the transaction.
  • updatedAt - Last update timestamp of the transaction.
  • customFields - Custom fields data.
  • stateMachineState - State machine state details.
  • order - Detailed order information.
  • paymentMethod - Detailed payment method information.
  • captures - Capture details related to the transaction.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Order Id, Payment Method Id, Amount, State Id) are provided to avoid validation errors.
  • If the API returns authentication errors, verify the Shopware Admin API credentials are correctly configured.
  • Timeouts can occur if the server is slow; adjust the timeout setting in request options if needed.
  • Malformed JSON in fields like Amount, Validation Data, or Custom Fields can cause request failures; ensure valid JSON format.

Discussion