question

komahan avatar image
komahan asked David Marginian commented

How do we calculate Net Sales from Get Orders API?

While calculating Net Sales from Get Order API, what all fields should we take into account? I see many values in reports such as UnPaid Balance, Service Charge etc. What all should we add in Order Total and what should we subtract?

REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian answered David Marginian commented

Documentation on calculating order totals can be found here: https://docs.clover.com/docs/calculating-order-totals

A third party developer recently discovered a few flaws in this documentation that haven't been addressed yet regarding discounts and tax calcultations - please see this post for guidance here - https://community.clover.com/questions/31457/taxes-with-amount-discounts-off-by-001.html..

As I believe I have previously mentioned to you looking at the OrderCalc class in the Android SDK may also be helpful.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

As we are using Orders API directly, we are getting Order Totals from API itself. I would like to get details on how Sales Summary Report is formed using the details available in orders API


0 Likes 0 ·
Please use the links above, you will need to obtain the order with several expansions (lineItems, refunds, voids, etc.) and then calculate the totals.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community