affiliatch

Docs

From empty brand to first attributed sale in one newsletter send.

Create a brand

curl -s -X POST http://localhost:8106/api/brands \
  -H "Content-Type: application/json" \
  -d '{"email":"founder@saas.dev","name":"My SaaS"}'

The owner token authorizes dashboard reads, affiliate writes, and CSV exports.

Add affiliates

curl -s -X POST "http://localhost:8106/api/affiliates?brand_id=BRAND_ID" \
  -H "Authorization: Bearer OWNER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"WellnessMom","code":"WELLNESSMOM"}'

Each affiliate gets a redirect link (/go/slug) and an optional coupon code. They can watch their own stats on a tokenized portal page.

How attribution works

Your MoR platform posts payment.succeeded to the Affiliatch webhook. We match the discount code or the 30-day ref cookie to an affiliate and record the conversion with its revenue. Recurring subscription events follow the same path.

Payout exports

GET http://localhost:8106/api/export/commissions.csv?brand_id=BRAND_ID&period=90d
Authorization: Bearer OWNER_TOKEN

One row per affiliate per period: revenue, rate, owed. You execute payouts; Affiliatch stays the ledger.

Plan limits

Free Pro $29/mo Growth $79/mo
Conversions / mo501k10k
Affiliates10100unlimited
Custom-domain portal-yesyes