Ship your affiliate program in an afternoon
REST API for conversion tracking, affiliate management, and payouts.
Track conversions, manage affiliates, schedule commissions, and pay partners — from a single typed API. Read the reference, follow the integration guides.
What's inside
Five guides covering everything you need to integrate the platform end-to-end.
Getting started
Sign up, create a campaign, and ship your first conversion in five minutes.
Start integratingAPI reference
Every public endpoint with code samples in curl, JavaScript, and Python.
Start integratingSDK integration
Drop @refcampaign/sdk into a Next.js app and call track() / identify().
Start integratingAuthentication
Bearer tokens, key rotation, and how to scope keys to a single campaign.
Start integratingTrack a conversion in one call
Send a POST to /api/v1/conversions/track with a clickId and an amount. We attribute, attach the affiliate, and accrue the commission.
curl -X POST https://app.refcampaign.com/api/v1/conversions/track \
-H "Authorization: Bearer rc_live_..." \
-H "Content-Type: application/json" \
-d '{
"clickId": "clk_2K8jQ...",
"amount": 4900,
"currency": "EUR",
"orderId": "ord_12345"
}'{
"id": "conv_3F7m2...",
"status": "ATTRIBUTED",
"affiliateId": "aff_9NkP1...",
"commissionAmount": 980,
"createdAt": "2026-05-02T14:32:11Z"
}Ready to integrate?
Pull up the getting-started guide and have your first conversion tracked in minutes.