I am currently developing a web app system which would need to generate discount coupons for a specified web store. Currently, my system is written in JS.
What I would want to do is the following:
When the store owner clicks a button on my web app, it will grab information entered and generate a discount on their magento store.
How could I do this?