Download code generation/redemption

Is there anything out there that can help me with download code generation/redemption, so I can sell products through resellers?

  • generate e.g. 10k reseller codes with reseller name (e.g. “Amazon” or “Free Friend Copy”)
  • users redeem purchased codes on a HTML page we host (inline HTML form that I’ve coded that takes user name, email and code)
    • codes can be redeemed only once, and would keep the reseller name attached to it
  • when user redeems a code, it triggers a webhook

TIA!