# What is Order Transaction Version

**URL:** <https://forum.shopware.com/t/what-is-order-transaction-version/98217>\
**Category:** Programming (EN)\
**Created:** [26. Januar 2023 um 13:51 UTC](https://forum.shopware.com/t/what-is-order-transaction-version/98217 "2023-01-26T13:51:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miro](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@miro](https://forum.shopware.com/u/miro)\
**Post date:** [26. Januar 2023 um 13:51 UTC](https://forum.shopware.com/t/what-is-order-transaction-version/98217/1 "2023-01-26T13:51:22Z")

</div>

Hi,

I am exploring the order\_transaction table and spot two fields - version\_id and order\_version\_id. In my case both fields hold same id. I checked the version table, but can not find the id from the order\_transaction table here. What are those fields for, and how their IDs are generated?

The reason I am asking is because I search for best practice when execute different transactions for an Order.  
If it is not mandatory to create new record for a new transaction I can use the first one and just will change my info into the custom\_fields field.  
But if it is recommended to create record for each new transaction (Settle, Refund, Void) I want to know what to put into version\_id and order\_version\_id for the new transaction. Of course I can just copy the value from last Transaction for the Order and use them.  
Any recommendations?

Regards!
