# Affiliate Promo Codes Setup
URL: /docs/affiliate-promo-codes
Description: Track affiliate referrals using unique promo codes in Stripe

# Overview

PromoteKit assigns unique promo codes to each affiliate. When a customer uses an affiliate's promo code at checkout, the referral is automatically tracked and the affiliate earns their commission.

## How It Works

1. You create a coupon in Stripe with a discount (e.g., 10% off)
2. PromoteKit automatically generates unique promo codes for each affiliate based on that coupon
3. Affiliates share their promo codes with potential customers
4. When customers use the code at checkout, PromoteKit tracks the referral

## Setup Methods

  - [Stripe Checkout](/docs/affiliate-promo-codes/stripe-checkout): Enable promo codes on Stripe Checkout with a single parameter
  - [Stripe API](/docs/affiliate-promo-codes/stripe-api): Use the Stripe API directly for custom checkout flows
  - [Default Coupon Code](/docs/affiliate-promo-codes/default-coupon-code): Configure your default coupon for affiliate promo codes

> **Note:** No website script is required for promo code tracking. It works entirely through Stripe.