Hi there,
I need to check the order amount before applying the discount, but I can’t find this variable in the Flow app.
Does it even exist?
Hi there,
I need to check the order amount before applying the discount, but I can’t find this variable in the Flow app.
Does it even exist?
Hi there - could you clarify what order amount you are referring to? Do you need to check the order amount before any already applied discounts (i.e. what would the order amount be if there were no discounts)?
Thanks!
Yes, the sum of the prices of all products — before applying any discounts, taxes, shipping, etc.
There is not a single field in the Admin API for the Order object that represents that value. It can be calculated with currentTotalPriceSet
minus these:
currentTotalAdditionalFeesSet
currentTotalDiscountsSet
currentTotalDutiesSet
Unfortunately, Flow may not have a means to do this currently depending on your use case. How were you planning on using this value in the workflow?