Skip to Content
Referhatch
Tools

Record a referral visit

Record one visit against an affiliate ID or referral code in your account. Each call, including retries, records a new visit and consumes one tracking block. Your site must submit visits; Referhatch does not collect them automatically.

curl https://api.referhatch.com/v1/record_visit \
  -H "Authorization: Bearer $API_KEY" \
  -d '{}'

Input

FieldTypeDescription
affiliate_idstringAffiliate ID in your account. Provide this or a referral code.
referral_codestringReferral code in your account. Provide this or an affiliate ID.
occurred_atstringUTC event time, such as 2026-11-01T12:00:00Z. Defaults to now.

Output

FieldTypeDescription
ok (required)boolean
errorobject
visitobject