# Transaction workflow without posting

Source: https://developer.avalara.com/vat-erp/design-the-document-workflow/erp-workflow-without-posting/

![ERP transaction workflow without posting](https://avalara-devdocs-prod.mcoutput.com/vat-erp/Resources/Images/DevDot/erp-workflow-without-posting_929x236.png)  

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.