auth

Capture Referral

Persist the er_ref cookie value at signup time so the Stripe webhook can auto-redeem on subscription start. Validates code format only — the actual redeem (with self-referral / dedup / cap checks) runs in the webhook via referral._redeem_referral_for_user.

Idempotent: upsert by user_id; subsequent calls overwrite the pending code, which matches "newest share link wins" behavior in the cookie write site.

post/api/auth/capture-referral

Request

  • Base URL: https://api.equity-rank.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.equity-rank.com/api/auth/capture-referral
  • Auth: HTTP bearer

Request body

codestring required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.