Hello there. I deleted your duplicate post about enabling course completion in accordance with the Site policy but I am happy to give an answer to this original post here. The documentation on Course completion should explain to you how to set it up for individual courses and once a course has course completion enabled you should be able to award a badge based on that.
General help
badge criteriations of course setting
This discussion has been locked so you can no longer reply to it.