question

Alex Libkind avatar image
Alex Libkind asked David Marginian Deactivated commented

How Does Tip Effect Total Sales Price in https://docs.clover.com/reference/ordergetorders-2 API

It seems that the data we are getting from https://docs.clover.com/reference/ordergetorders-2 API is giving us sales data that DOES NOT include the tip. For example, the Total = Sum (Item Total) - Sum (Discounts) + Tax. If there is a tip it does NOT show up in the Total. In order to determine how much was Tendered, do we need to add the Tip to the total?

OrdersREST 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.

David Marginian avatar image
David Marginian Deactivated answered

Tips should not be included in the order total - https://docs.clover.com/docs/calculating-order-totals.. I say "should not" because hypothetically a 3rd party app could create an order and set an invalid total that included the tip. If you want to see the amount paid for a given order you should expand payments (https://docs.clover.com/docs/expanding-fields) and iterate through the payments on the order.

10 |2000

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

Alex Libkind avatar image
Alex Libkind answered David Marginian Deactivated commented

Just for clarity here is screenshot of the JSON response Total = $25.99 + $1.88 = $27.87 but tip of $4.18 is not in total.Screen Shot 2021-09-17 at 12.06.31 PM.png


1 comment
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·
Per my prior comment, tip should NOT be included in the total.
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