Build with Afflyin
API references, integration guides, SDK documentation, and webhook setup. Everything you need to integrate affiliate tracking into your platform.
Documentation
Browse by topic
Quick Start
Get your first affiliate link tracking in under 10 minutes.
REST API
Full API reference for managing programs, affiliates, links, and payouts.
Link Tracking
Server-side and client-side tracking, UTM parameters, and attribution models.
Webhooks
Real-time event notifications for conversions, payouts, and affiliate activity.
Integrations
Native plugins and integration guides for popular platforms.
Analytics & Reporting
Understanding your dashboard, exporting data, and building custom reports.
SDK
Track conversions in a single API call.
Afflyin's server-side SDK makes it trivial to record conversions, manage affiliates, and trigger payouts — all from your existing backend. Available for Node.js, Python, PHP, Ruby, and Go.
const afflyin = require('@afflyin/sdk');
const client = new afflyin.Client({ apiKey: process.env.AFFLYIN_API_KEY });
await client.conversions.create({
affiliateId: 'aff_123',
orderId: 'order_456',
amount: 9900,
currency: 'USD',
});import afflyin
client = afflyin.Client(api_key=os.environ["AFFLYIN_API_KEY"])
client.conversions.create(
affiliate_id="aff_123",
order_id="order_456",
amount=9900,
currency="USD",
)