For the complete documentation index, see llms.txt. This page is also available as Markdown.

🧪Test your integration

Verify the full affiliate attribution flow (click → signup email → sale → commission) before going live – without charging customers your real product price.

Open a tracking link in a private window. Confirm the click shows up in Uppercut.

2. Bind the visitor (browser console)

With the cookie still set on your site, paste one of these:

// Email only
Uppercut.signup('[email protected]')
// User ID only
Uppercut.signup({ userId: 'user_123' })
// Both (recommended)
Uppercut.signup({ email: '[email protected]', userId: 'user_123' })

3. Simulate a sale (no Stripe charge)

Create an API key under API keys, then paste:

# Email only
curl -X POST https://app.uppercut.co/api/track-sale \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "event_id": "test_001",
    "amount": 99.00,
    "currency": "usd",
    "email": "[email protected]"
  }'

Use the same email / userId as step 2. Change event_id if you run the test again.

4. Check the commission

A commission should appear for the test affiliate. Reject it so it is never paid out.

If nothing appears, signup was missing or the identifiers did not match.

Optional: Stripe smoke test

After step 2 works:

Email: checkout with the same email (customer_email on Checkout).

User ID: set the same ID on Stripe:

Use a $1 live Payment Link. Stripe test mode charges will not arrive correctly.

Last updated