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/postback with an orderId (externalId) and an amount. We attribute, attach the affiliate, and accrue the commission.
curl -X POST https://app.refcampaign.com/api/v1/conversions/postback \
-H "Authorization: Bearer rc_live_..." \
-H "Content-Type: application/json" \
-d '{
"externalId": "ord_12345",
"conversionType": "SALE",
"clickId": "clk_2K8jQ...",
"amount": 4990,
"currency": "EUR"
}'{
"success": true,
"data": {
"success": true,
"conversionId": "cnv_3F7m2...",
"commissionId": "cmm_9NkP1...",
"commissionAmount": 499
},
"meta": {
"timestamp": "2026-05-02T14:32:11Z"
}
}Ready to integrate?
Pull up the getting-started guide and have your first conversion tracked in minutes.