# Transaction workflow without posting

Source: https://developer.avalara.com/avatax-for-vat/pum0673089158937/

# Transaction workflow without posting

Learn how to calculate tax for transactions without recording a permanent entry.

This workflow is specific to the VAT ERP solution only.

![](https://knowledge-be.avalara.com/bundle/ozz0049272407478_ozz0049272407478/page/jls8554898080411.image?_LANG=enus)

1.  After a user enters a quote on your site, call the [CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/) API with `type` set to either `SalesOrder` or `PurchaseOrder`. AvaTax will calculate tax based on your shipping address and the customer’s destination address, but it won’t record a permanent transaction, so you won’t have to do any cleanup for abandoned carts.

2.  After reviewing the order entry, call [CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/) again with `type` set to `SalesInvoice` or `PurchaseInvoice` and `commit` set to `false`. This will get you a tax calculation based on your shipping address and the customer’s destination address, but it won’t record a permanent transaction.