Skip to main content

Create a referral code

POST 

/referral_codes

Mints a referral code for your application. No relationship with the company is needed. Put it on any wefunder.com link as ?wfr=<id>.

Before its first code, your organization must accept the referral attribution terms once: Wefunder does not pay partners per referral, and a partner may not be compensated per referral unless it is a registered broker-dealer. Until an owner or admin accepts them in the developer portal, this returns 422 attribution_terms_required with details.acceptance_url.

An application may have at most 500 active codes (422 quota_exceeded); deactivate codes you no longer use. UTM presets fill blank utm_* fields on visits that carry the code. A source or campaign starting with wf_ is reserved for Wefunder's own channels and returns 422 reserved_utm_prefix. Idempotency keys are not supported here: a retried request may create a second code, which you can deactivate.

Request​

Responses​

Referral code created