Quickstart
From a new workspace to your first verified, attributed conversion in about fifteen minutes.
1. Create a workspace and program
Register a business account, enter your business details and create your first affiliate program. Choose the commission model (for example pay per sale, 10%), the cookie window, the hold period before commissions become payable and the minimum payout.
Add your website under Websites and verify ownership with a DNS TXT record, a meta tag or a file at /.well-known/affllux-verification.txt. Programs can only be published for verified websites.
2. Install the tracking script
Copy the snippet from Integrations → JavaScript SDK. It contains your website's publishable key, which is safe to expose in pages.
<script async src="https://YOUR-AFFLUX-HOST/sdk/v1.js" data-key="pk_…"></script>Open any page of your site: the first visit sends a diagnostics ping and the integration status turns green.
3. Send a conversion from your backend
Create a test secret key (sk_test_…) under Integrations → Server API. After a payment succeeds, read the _aff_cid cookie on your server and send it with the order:
curl https://YOUR-AFFLUX-HOST/api/v1/conversions \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_1001" \
-d '{"type":"purchase","external_id":"order_1001","amount":"149.00","currency":"USD","click_id":"<_aff_cid>"}'The response tells you whether the conversion was attributed and the commission that was calculated. Test-mode data is labelled in the dashboard and can never be approved for payout.
4. Verify, then go live
Follow your own affiliate link (/r/…), buy something on your site, and check Conversions and Commissions in the dashboard. When everything matches, create a live key (sk_live_…) and publish the program.