1. Navigate to to Downloads section in your ThemeForest profile and find the theme you purchased.
2. Click on Download button and on sub-menu click on License certificate & Purchase code (image below).
3. After downloading the file, open it and find line that starts with Item Purchase Code. Code after colon is Purchase code you are looking for (check image below).