Social science researchers face the challenge to send gift card codes to online survey participants immediately without buying all codes upfront. In the blog post, I explain how this can be achieved using the Qualtrics API and python. I describe a program that checks Qualtrics continuously for new responses and then sends each new respondent a code via email.