How do i cancel a purchase in the App Store?
Purchases are considered final.

However, the same has happened to me and I’ve found Apple to be quite forgiving if you explain the situation and ask nicely.

Contact iTunes Support and see if they will refund or credit you. Go to https://reportaproblem.apple.com in your browser, log in, locate the purchase and explain the situation. 

Good luck!