<p>The <a href="https://craftcommerce.com/docs/events-reference#commerce_orders.onbeforesaveorder" rel="nofollow noreferrer">onBeforeSaveOrder</a> event runs before all of the adjustments are calculated (including taxes), so it seems like that's what you're looking for.</p>

CC BY-SA 4.0
2018-07-14T22:02:03.243Z
2018-07-14T22:02:03.243Z
Brad Bell
<p>Is there anything akin to a presave event or postsave event where we can make a call to TaxJar API to get calculate and report sales tax? I find the integrated tax system impractical at the moment. I would like to create a plugin that can access the existing tax api platforms, but need to know the best insertion points for this.</p>

<plugin-craftcommerce><tax>
How can we use TaxJar with CraftCommerce?
# How can we use TaxJar with CraftCommerce?

(Asked by: username_0 on 2018-07-14)

Is there anything akin to a presave event or postsave event where we can make a call to TaxJar API to get calculate and report sales tax? I find the integrated tax system impractical at the moment. I would like to create a plugin that can access the existing tax api platforms, but need to know the best insertion points for this.

**Tags:** plugin-craftcommerce, tax


---

## 1 answers

### Answer by username_1 on 2018-07-14. Score: 3

The [onBeforeSaveOrder](https://craftcommerce.com/docs/events-reference#commerce_orders.onbeforesaveorder) event runs before all of the adjustments are calculated (including taxes), so it seems like that's what you're looking for.


---

