Documentation

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.

Track 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.

Request
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"
  }'
Response
{
  "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.