Is there any way to create discount codes on the fly outside of e-junkie (through an api)? For example, customers visit my site and purchase. On the thank you page they get to tell three of their friends about the amazing product and receive a discount code for doing so. But, the code must be a single use code and uique. I have read the documentation and the forums and none of the existing solutions will work for what we need to do. We need to be able to generate the code outside of e-junkie admin (through scripting) and display it on the page. Since the admin is flash based, I can't see any obvious way to do it. Any suggestions?