# \[API\] - Invoices total amount

**URL:** <https://forum.manager.io/t/api-invoices-total-amount/32153>\
**Category:** Uncategorized\
**Created:** [December 22, 2020, 8:15pm UTC](https://forum.manager.io/t/api-invoices-total-amount/32153 "2020-12-22T20:15:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonisV](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/antonisv/32/6914_2.png) [@AntonisV](https://forum.manager.io/u/AntonisV)\
**Post date:** [December 22, 2020, 8:15pm UTC](https://forum.manager.io/t/api-invoices-total-amount/32153/1 "2020-12-22T20:15:14Z")

</div>

Hi there, i can see, that in the json files of the API, there is not a “total amount” field.

We can calculate it with the tax code that exists there, but we have to make sure that the rounding is the same.

Can we have info about how manager rounds the total amount with some examles?

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [December 22, 2020, 11:20pm UTC](https://forum.manager.io/t/api-invoices-total-amount/32153/2 "2020-12-22T23:20:39Z")

</div>

Totals are not calculated using tax codes. Tax codes are applied, and calculations are made and rounded to the defined decimal accuracy of the currency in use for the transaction, at the line item level. Line item quantities are simply summed to derive totals.

If the rounding option is chosen on a sales invoice, you can choose to round to nearest or round down. In either case, the rounding is to a whole unit of the currency, not tens, hundreds, or thousands, etc. A fraction of .5 is rounded up when rounded to nearest.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 2:52pm UTC](https://forum.manager.io/t/api-invoices-total-amount/32153/3 "2023-01-18T14:52:05Z")

</div>


