Thanks fpr taking a look at my problem.
Yes, i have spoken to automate.io about this (actually, i had spoken to them first before posting my problem here) and they said that from their end everything works perfectly.
I think it should be WC calculating the discount, not automate.io, since automate.io only connects the apps and gives commands to WC. WC is the final step in the automation process but after the coupon is added, the final price with the discount is not re-calculated.