Shopware icon

Shopware

Shopware

Actions778

Order Transaction → Create Order Transaction

AI-generated

Overview

This node operation allows creating an Order Transaction in the Shopware system. It is useful for automating the process of recording payment transactions related to orders, including details such as payment method, amount, state, and captures. Practical examples include integrating payment gateways or order management systems to automatically log transactions when an order is placed or updated.

Use Case Examples

  1. Creating a new payment transaction for an order after a customer completes checkout.
  2. Recording a refund or capture related to an existing order transaction.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the order transaction.
Version Id Version identifier for the order transaction.
Order Id Identifier of the order associated with the transaction.
Order Version Id Version identifier of the associated order.
Payment Method Id Identifier of the payment method used for the transaction.
Amount Amount details of the transaction including list price and regulation price.
Validation Data Additional validation data for the transaction.
State Id Identifier of the state of the transaction.
Custom Fields Custom fields for additional data.
Created At Timestamp when the transaction was created.
Updated At Timestamp when the transaction was last updated.
State Machine State State machine state details related to the transaction.
Order Detailed order data associated with the transaction.
Payment Method Detailed payment method data associated with the transaction.
Captures Details of captures related to the transaction.

Output

JSON

  • id - Unique identifier of the created order transaction.
  • orderId - Identifier of the order associated with the transaction.
  • 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.
  • stateMachineState - State machine state details.
  • order - Detailed order information.
  • paymentMethod - Detailed payment method information.
  • captures - Details of captures related to the transaction.

Dependencies

  • Shopware API with authentication credentials

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 API credentials and base URL configuration.
  • For JSON fields (Amount, Validation Data, State Machine State, Order, Payment Method, Captures), ensure the JSON is correctly formatted to prevent parsing errors.

Discussion