question

morenoh149 avatar image
morenoh149 asked ·

Custom tender send order cost to api

I'm building a custom tender. I need to send my platform an id for the user and the order amount from the clover pos.

Which Android SDK allows me to get the order total cost? from the Sale or Register apps.
Sale
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
zgreathouse avatar image
zgreathouse answered ·
To get the total of an order you would use the OrderConnector SDK. See example below:
OrderConnector.getOrder(orderId).getTotal();
See docs here:

One thing to note about the totals you see in the Clover Register app is that the overall order total is the only total which is saved on an Order Object. The Subtotal and Tax total have to be calculated. In other words there is no subtotal or taxTotal fields on an Order object. We have docs on how to calculate these totals here:
https://docs.clover.com/clover-platform/docs/working-with-orders#section--calculating-order-totals-
2 comments Share
10 |2000 characters needed characters left characters exceeded

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

would I need the order read permission listed in this image? https://files.readme.io/b528f08-Permissions.png

0 Likes 0 · ·

That is correct.

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