Getting order summary without creating order

Hello,

We are integrating our online ordering with square. In our ordering flow, the user is presented an order summary (which shows the current state of the order along with all applied discounts and taxes) and this summary is updated as various discounts are applied or service charges are added. We show this summary to the user, before the order is actually created in the target POS system.

Does Square have an api which will essentially take the cart(along with all discounts) and calculate proper taxes and return what the end order would look like, without actually creating an order in square?

Thanks.

Please disregard. it seems like calculate order api does exactly that.