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/postback with an orderId (externalId) and an amount. We attribute, attach the affiliate, and accrue the commission.

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